I thought I read somewhere that you can style tables by columns, just as you can by rows and cells. In the article I read, the example showed TH across the top of the table, and the first column of cells was styled using some kind of column selector, not picking the first cell in each row. (this is one of those senior moments I guess, because I can't find where I read that now - it was in one of Russ's "light reading" posts a few months back I think.)
But if it's what I think it is, that would allow you to give a column an id and style it that way. No? Cheers Mike Kear Windsor, NSW, Australia AFP Webworks http://afpwebworks.com -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick H. Lauke Sent: Friday, 13 August 2004 1:56 PM To: [EMAIL PROTECTED] Subject: Re: [WSG] applying style to the 3rd column of a table? You may want to look at COLGROUPs http://www.w3.org/TR/REC-html40/struct/tables.html#h-11.2.4 Patrick H. Lauke Justin French wrote: > 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 ****************************************************** 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 ******************************************************
