homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

Background Color Not showing in Firefox

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

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!



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

Ah man, just figured it out. Nevermind!


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

Hello Bonnie, and welcome to the forums.

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


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

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

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


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

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).


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

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.
Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved