Welcome to WebmasterWorld Guest from 23.22.182.29

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)

Senior Member

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

joined:Apr 19, 2002
posts:3171
votes: 8


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)

Senior Member

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

joined:Apr 19, 2002
posts:3171
votes: 8


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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 26, 2004
posts:1497
votes: 0


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)

Senior Member

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

joined:Apr 19, 2002
posts:3171
votes: 8


thanks for that, yes TopStyle gave it an ok!

so thanks for clarifying the position.

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members