- From: Orion Adrian <orion.adrian@gmail.com>
- Date: Wed, 22 Jun 2005 12:49:36 -0400
- To: www-style@w3.org
Shouldn't the solution closely match the congnitive map that people use in their head? They don't style nth-child's, they style columns. This kind of thing is why a lot of people have trouble initially with CSS and even non-intially. Orion Adrian On 6/22/05, Kris@meridian-ds.com <Kris@meridian-ds.com> wrote: > > > The only valid properties for table-column type elements > > <a href="http://www.w3.org/TR/2005/WD-CSS21-20050613/tables.html#q4">17.3 > > Columns</a> are 'border', 'background', 'width', and 'visibility'. > > > Additionally these elements should support 'color', and the various > > 'text', 'font' and 'align' properties. All of the supported properties > > >I agree these should/must be supported. > >As we move away from tables being used for layout and start using tables > for > >their intended purpose which is to display data, CSS2.1 and (X)HTML > quickly > >prove inadequate. Try highlighting a column in a table and you find the > code > >required bloated, complex and unintuitive. How much easier would it be to > >change the columns colour property? > > > >Tables by their nature consist of elements grouped by columns. These > element > >properties will have to be supported at some point so let's get the ball > >rolling :-) > > Can't you just use an :nth-child for tds in a tr? > > tr:nth-child(1) { > background-color:#lime; > } > > Just specificy what you want the colors to be inside of nth-child, and move > on with life. This should allow you to color any column you please. > Course, the requires nth-child support but yeah... css will do it with > ease. > > Kris > > > >
Received on Wednesday, 22 June 2005 16:49:41 UTC