Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New to CSS - HELP

Status
Not open for further replies.

gisenberg

Programmer
Dec 11, 2006
3
US
I am trying to adapt to CSS which I know is much cleaner and easier to make changes down the road. The problem that I am having is I create a class at the TD level, but nothing is changing. It appears to be getting the attributes from either my Table class or body class. What is the order of precendence and how can I control the attributes at the TD or TR level?

Thanks in advance, Greg
 
what is the code that doesn't work? to apply styling to all table cells, do something like this:

Code:
td {
    color: red;
}

to apply a class to certain table cells, first create a class style definition:

Code:
 .blue {
    color: blue;
}

then apply the class to the appropriate cell:

Code:
<td class="blue">...</td>



*cLFlaVA
----------------------------
[tt]"quote goes here"[/tt]
[URL unfurl="true"]http://www.coryarthus.com/[/url]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top