Main Topics
Browse All TopicsAm trying to understand a .css provided by MacroMedia Contribute for a template page.
Page: http:www.prestoweb.ca/cont
Css: http:www.prestoweb.ca/cont
Selectors are repeated in the css in this manner:
td {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
padding-left:20px; padding-right:20px;
}
td th {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
background-color:#999966;
color: #ffffff;
padding-left:10px; padding-top:2px; padding-bottom:1px;
}
td td {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
padding-left:5px;
}
What is the use of the
td td
td th
combinations of selectors ?
Thanks for helping.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
<!-- Affect all <TD> tags -->
TD{
}
<!-- Affect all tags with class="Classname" -->
.Classname{
}
<!-- Affect all <TD class="Classname"> tags -->
TD.Classname{
}
<!--
Affect all <TD> tags, second level and beyond.
See doward's solution
-->
TD TD{
}
<!--
Affect all <TD> tags under <TD class="Classname"> tags
-->
TD.Classname TD{
}
<!-- Error -->
TD.Classname.TD{
}
<!-- Affect all <TD> and <INPUT> tags -->
TD, INPUT{
}
<!--
Affect all <TD class="Classname"> tags and <INPUT> tags
nested in TD tags
-->
TD.Classname, TD INPUT{
}
This question has been classified abandoned. I will make a recommendation to the
moderators on its resolution in a week or two. I appreciate any comments
that would help me to make a recommendation.
<note>
Unless it is clear to me that the question has been answered I will recommend delete. It is possible that a Grade less than A will be given if no expert makes a case for an A grade. It is assumed that any participant not responding to this request is no longer interested in its final disposition.
</note>
If the user does not know how to close the question, the options are here:
http://www.experts-exchang
Cd&
Business Accounts
Answer for Membership
by: dorwardPosted on 2003-02-22 at 10:44:52ID: 7999526
td td means "A <td> element that is a decendant of another <td> element".
e.g.
<table>
<tr>
<td> <!-- Does not match -->
<table>
<tr>
<td> <!-- match -->
<table>
<tr>
<td> <!-- match -->
td th is the same, except it matches a <th> inside a <td>.