Posted by Toby Inkster on 05/18/06 10:51
Jeremy Brown wrote:
> I am inherently lazy and do not want to type a class="xxxx" in every
> row <tr> and data <td> entry of a table.
TABLE.foo { color:blue; border:1px solid green; }
TABLE.foo TD { color:blue; border:1px solid red; }
<table class="foo">
<tr><td>a</td><td>b</td></tr>
<tr><td>1</td><td>2</td></tr>
</table>
Go read up on descendant selectors.
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Navigation:
[Reply to this message]
|