RE: [CSS21] properties for table-column (In HTML: COL) & table-column-group (In HTML: COLGROUP) items.

Woooooooh dude, I best get my text books on quantum thermo-nuclear dynamics
out!! Impressive what can be done with the complex use of pseudo elements
and selectors, but is that how people are expected to write CSS in the
future? 

The original sensible request was asking can we please add more properties
to the <Col> spec allowing us to use styles colour, highlight, etc columns. 

This request is a feature regularly used in data tables in the real world
and so would be of great benefit to everyone if it was achievable simply and
intuitively in CSS. 

There are often claims about this being difficult for browsers to implement
BUT I cannot see how a product such as Dreamweaver could ever manage to
produce the css and code you suggest to colour a column!! And if they can't
then will web authors ever produce well coded pages.

CSS is wonderful. But if this is the future then the W3C appear to be
determined to Kill the Dream.

Please give us CSS we can use and start by add styling of columns to the
spec.

Many thanks
Paul

-----Original Message-----
From: www-style-request@w3.org On Behalf Of Lachlan Hunt
Subject: Re: [CSS21] properties for table-column (In HTML: COL) &
table-column-group (In HTML: COLGROUP) items.

/* First Column

td:first-child { font-style: italic; }


/* Second Column

td:not([colspan]):first-child+td,
td[colspan="1"]:first-child+td,
td[colspan]:not([colspan="1"]):first-child
{ font-weight: bold; }


/* Third Column

td:not([colspan]):first-child+td:not([colspan])+td,
td:not([colspan]):first-child+td[colspan="1"]+td,
td:not([colspan]):first-child+td[colspan]:not([colspan="1"]),
td[colspan="1"]:first-child+td:not([colspan])+td,
td[colspan="1"]:first-child+td[colspan="1"]+td,
td[colspan="1"]:first-child+td[colspan]:not([colspan="1"]),
td[colspan="2"]:first-child+td,
td[colspan]:not([colspan="1"]):not([colspan="2"]):first-child
{ text-decoration: underline; }

If more columns are added, it gets even more complex 

Received on Tuesday, 28 June 2005 10:26:25 UTC