Welcome to WebmasterWorld Guest from 54.205.17.36

Forum Moderators: incrediBILL

Message Too Old, No Replies

Background Color Not showing in Firefox

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

New User

5+ Year Member

joined:Oct 2, 2008
posts:2
votes: 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

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

New User

5+ Year Member

joined:Oct 2, 2008
posts:2
votes: 0


Ah man, just figured it out. Nevermind!
7:13 pm on Oct 2, 2008 (gmt 0)

Senior Member

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

joined:May 26, 2000
posts:37301
votes: 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)

New User

5+ Year Member

joined:Aug 13, 2008
posts:18
votes: 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)

Senior Member

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

joined:Sept 29, 2000
posts:12095
votes: 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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Dec 17, 2001
posts:1262
votes: 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.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members