Hi Justin,
Not well supported by IE but you can do with adjacent sibling selectors:

td+td+td { background: red;}

Only the third column would display a red background

Sample:
http://www.maxdesign.com.au/jobs/css/adjacent.htm

Russ



> Hi Folks,
> 
> Is there any way (without ids or classes) to target the 3rd (for
> example) column of a table to apply styles?
> 
> What I'm hoping for is something like...
> 
> table td[3]    { text-align:right; }
> 
> ... but I can't see anything like that in my references.
> 
> TIA
> 
> ---
> Justin French
> http://indent.com.au

******************************************************
The discussion list for  http://webstandardsgroup.org/

Proud presenters of Web Essentials 04 http://we04.com/
 Web standards, accessibility, inspiration, knowledge
To be held in Sydney, September 30 and October 1, 2004

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
******************************************************

Reply via email to