Forum Moderators: open

Message Too Old, No Replies

Background Color Not showing in Firefox

         

artisticweb42

5:42 am on Oct 2, 2008 (gmt 0)

10+ Year Member



I've created a web page using tables, no CSS for layout. When I view in IE shows the black background color. when I view in Mozilla Firefox the background is white. Also, the top margins does not render as 0. This is my code

<body bgcolor="000000" leftMargin=0 topMargin=0>

Thanks for any help!
Bonnie

artisticweb42

6:03 am on Oct 2, 2008 (gmt 0)

10+ Year Member



Ah man, just figured it out. Nevermind!

tedster

7:13 pm on Oct 2, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello Bonnie, and welcome to the forums.

Missing the "#" I assume? And using those non-standard "margin" attributes? Or was there more to it?

seodreamer

8:17 am on Oct 6, 2008 (gmt 0)

10+ Year Member



You've got three choices when using colors for backgrounds:

<body bgcolor="#000000">
<body bgcolor="rgb(0,0,0)">
<body bgcolor="black">

Marcia

8:34 am on Oct 6, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Always check html or css for simple little typos! I had a page background color showing as black instead of white because I had backkground instead of background (2 k's).

choster

3:01 pm on Oct 7, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Don't forget
<body style="background:#000;">
or
<body style="background-color:#000000;">
. And even if you're not using CSS for layout, you can still format the page with it whether inline or in an external file.