Forum Moderators: not2easy

Message Too Old, No Replies

Using CSS to make colored backgrounds that will show up on any browser

         

portishead

6:10 pm on Mar 1, 2006 (gmt 0)

10+ Year Member



I set my background blue on my website. When I visit the site at Safari and Opera, the background shows up. On Netscape and Firefox, it doesn't. I've loaded the latest versions of all the browsers and I've checked the preferences to show the website colors & backgrounds. Also, I'm using Dreamweaver to build the site. Is there a way to use CSS to keep the background color? Thanks in advance for your help.

jessejump

7:00 pm on Mar 1, 2006 (gmt 0)

10+ Year Member



>>>>>>> I set my background blue on my website.

What code did you use?

Don_Hoagie

8:59 pm on Mar 1, 2006 (gmt 0)

10+ Year Member



Portishead, instead of dupe-posting your issue, why don't you post your code as one member asked in your other thread?

This is novice-level CSS/HTML: the issue would've been resolved already if you had posted and/or bothered to validate it with the W3C validators.

portishead

10:08 pm on Mar 1, 2006 (gmt 0)

10+ Year Member



I apologize. I don't understand code yet, so it's not second-nature to post it when I'm asking a question. I'm not sure which code below is the correct one, so I'll post both. Thanks for your help.

<body bgcolor="dee9ea" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" class="background"

or

<link href="css/background.css" rel="stylesheet" type="text/css" />
</head>

jessejump

10:27 pm on Mar 1, 2006 (gmt 0)

10+ Year Member



>>>>> dee9ea

should be: #dee9ea

portishead

2:46 pm on Mar 2, 2006 (gmt 0)

10+ Year Member



Thanks so much jesse, worked like a charm!