Welcome to WebmasterWorld Guest from 54.147.217.76

Forum Moderators: not2easy

Message Too Old, No Replies

background-color none

can't seemt o over-ride the background color

   
11:47 am on Apr 16, 2008 (gmt 0)

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



doctype: HTML 4.01 Transitional

i have a table, where all but one cell have a black border and a background color:

.navBox * td {border: thin solid #000000;background-color: #F5DEB3;}

this works fine, the table is given the class 'navBox' and the cells show the style as expected.

one cell however doesn't need a background color or border:

.navBox * td.nb{border: none;background-color:none;}

so this td is given a class 'nb'
this removes the border but the background color is not going!
is background-color:none; invalid? TopStyle seems to think its ok

there is only a skeleton css sheet at the moment so no other conflicts

11:53 am on Apr 16, 2008 (gmt 0)

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



ok my bad, i should have used

background-color:transparent;

'none' seems to validate through a validator but it doesn't work!

7:56 pm on Apr 16, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



background-color:none is definitely invalid. background:none however isn't - the none is applied to the background-image component of the background shorthand. Topstyle getting confused?
11:55 pm on Apr 16, 2008 (gmt 0)

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



thanks for that, yes TopStyle gave it an ok!

so thanks for clarifying the position.