newbie: applying the same style to all cells in a table

Giganews Newsgroups
Subject: newbie: applying the same style to all cells in a table
Posted by:  Andy Fish (ajfi…@blueyonder.co.uk)
Date: Fri, 21 Nov 2003

Hi,

I am trying to figure out a way to apply a style to all cells in a table
without having to put the 'class' attribute on every <td>. Ideally I'd like
to do something like this (this doesn't work but I think it illustrates my
point)

td { style to apply to most tables }
td.specialstyle { style to apply to certain tables }
.... meanwhile in the <body>...
<table class="specialstyle">
  <tr>
    <td>stuff</td>

I have had a dig round and I can't see anything that says you can do this,
but I would like to check if I'm missing anything obvious

Andy

Replies