Table Background-Color Not Working With Firefox !

User Help for Mozilla Firefox
Post Reply
lovely_angel_for_you
Guest

Table Background-Color Not Working With Firefox !

Post by lovely_angel_for_you »

I have created an html page where I am giving the background color to
Table and to Cell using CSS. The background-color comes perfectly
alright in IE but in Firefox it is not displayed at all. Please help.

You can check the page here:
http://www.geocities.com/lovely_angel_f ... cking.html

The code used is:

Code in HTML Pages

<table cellpadding="0" cellspacing="0" width="80%" class="one">

<td width="100%" class="one">

Code In CSS

.one{background-color=#BF3A59;}

Please guide me to get this thing going.

Waiting for your replies.

Love
Lovely

________________________________________________
Guest
Guest

Post by Guest »

Code: Select all

.one {background-color: #BF3A59; }
yooperjeb
Posts: 2
Joined: February 1st, 2005, 6:50 pm

Table background colors not displaying

Post by yooperjeb »

I am having the same problem although I am not using CSS simply the table bground tag. Any ideas?
MatthewHSE
Posts: 200
Joined: December 11th, 2003, 12:12 pm
Location: Sitting at a computer in Central Illinois, working feverishly on complex CSS layouts

Post by MatthewHSE »

Well, CSS would be the preferred method, but <table bgcolor="#ff000"> should work. Replace the ff000 with whatever hex value you want.

(By the way, is bground even a valid attribute? Don't believe it is . . . )
Windows XP Pro SP 2
AMD Athlon XP 2600+ 1.91GHz
512MB DDR400 PC3200
yooperjeb
Posts: 2
Joined: February 1st, 2005, 6:50 pm

Found the sollution!

Post by yooperjeb »

I found that it works fine if you include the # in front of the color code i.e. bgcolor = "#A40000".

I am sure this is the html standard but I didn't know that before...

Have a great day.
Guest
Guest

Post by Guest »

IF your doctype puts firefox into standards mode, all of your color hex-codes MUST have the # in front of them.

bgcolor is not a valid tag according to the HTML 4.01 standard, but it works in most browsers.
originalhandy
Posts: 221
Joined: January 1st, 2005, 4:46 pm
Location: New Mexico
Contact:

Post by originalhandy »

By the way, is bground even a valid attribute?

Nope

body background
and bgcolor are
Post Reply