Re: setting table column attributes
- From: Toby Inkster <usenet200507@xxxxxxxxxxxxxxxxx>
- Date: Sat, 13 Aug 2005 12:29:02 +0100
ppcguy wrote:
> is there a way to set table column attributes (e.g. background-color)
> just once...as opposed to going into each <TD> for that column.
No -- table inheritance only works for rows.
So you can, for example, set the background for every cell in a particular
row, like this:
<style type="text/css">
TR.yellowrow TD { background:yellow }
</style>
<tr class="yellowrow">
<td>a</td>
<td>b</td>
<td>c</td>
</tr>
However, you can use the <colgroup> and <col> elements near the top of
your table to set border colours, widths and styles, and default
alignments.
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
.
- References:
- setting table column attributes
- From: ppcguy
- setting table column attributes
- Prev by Date: setting table column attributes
- Next by Date: Re: setting table column attributes
- Previous by thread: setting table column attributes
- Next by thread: Re: setting table column attributes
- Index(es):
Relevant Pages
|