homepage Welcome to WebmasterWorld Guest from 54.211.73.232
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
artisticweb42

5+ Year Member



 
Msg#: 3757193 posted 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!
Bonnie

 

artisticweb42

5+ Year Member



 
Msg#: 3757193 posted 6:03 am on Oct 2, 2008 (gmt 0)

Ah man, just figured it out. Nevermind!

tedster

WebmasterWorld Senior Member tedster us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3757193 posted 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?

seodreamer

5+ Year Member



 
Msg#: 3757193 posted 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">

Marcia

WebmasterWorld Senior Member marcia us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3757193 posted 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).

choster

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3757193 posted 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