Welcome to WebmasterWorld Guest from 54.205.60.49

Forum Moderators: incrediBILL

Message Too Old, No Replies

Background Color Not showing in Firefox

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

5+ 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

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

5+ Year Member



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

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 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?

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

5+ Year Member



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)

WebmasterWorld Senior Member marcia is a WebmasterWorld Top Contributor of All Time 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).
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.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month