HighDots Forums  

Changing TD background color doesn't work

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Changing TD background color doesn't work in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default Changing TD background color doesn't work - 11-19-2003 , 11:20 PM






I have a table column that starts like this
<td class="menu" style="WIDTH: 18%" valign="top">
If I specify the bgcolor property for this tag everything works okay
but if I try doing it in a CSS it doesn't work. Here is what I have in
the CSS.
All I want is a black background in my table column.

body
{
background: #696969;
background-color: #696969;
background-image: none;
}

div
{
display: block;
}

img
{
vertical-align: baseline;
}

A:link
{
color: White;
text-decoration: none;
}

A:active
{
color: White;
text-decoration: none;
}

A:hover
{
color: White;
text-decoration: underline;
}

table
{
border-top: 1px solid #ffffff;
border-right: 1px solid #ffffff;
border-bottom: 1px solid #ffffff;
border-left: 1px solid #ffffff;
}

td.menu
{
color: #000000;
background-color: #000000;
background-image: none;
}

Reply With Quote
  #2  
Old   
Christoph Paeper
 
Posts: n/a

Default Re: Changing TD background color doesn't work - 11-20-2003 , 01:30 AM






*Mark Constant* <constants (AT) mix-net (DOT) net>:
Quote:
I have a table column that starts like this
td class="menu" style="WIDTH: 18%" valign="top"
That's a table cell, not a column (<col/>).

Quote:
If I specify the bgcolor property for this tag everything works okay
but if I try doing it in a CSS it doesn't work.
Which browsers and version?

Quote:
background: #696969;
background-color: #696969;
background-image: none;
The latter two rules are redundant to the first one.

] table { border: 1px solid #ffffff; }
Quote:
td.menu {
color: #000000;
background-color: #000000;
This gives you black on black in that cell in virtually any CSS enabled
browser out there. If it doesn't happen to work on your system, there's some
influence you didn't tell or quote--better provide an URL and information on
the testing environment.

--
"It is not worth an intelligent man's time to be in the majority.
By definition, there are already enough people to do that."
G. H. Hardy


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.