W3C home > Mailing lists > Public > www-style@w3.org > December 2008

RE: [CSS2.1] col attributes: XHTML and CSS inconsistency?

From: Henri de Solages <mongolie2006-w3c@yahoo.fr>
Date: Fri, 26 Dec 2008 16:43:10 +0000 (GMT)
To: CSS mailiing list W3C <www-style@w3.org>
Message-ID: <621676.29297.qm@web28610.mail.ukl.yahoo.com>

Tab Atkins Jr. wrote:
"If you have a solution to that which would allow cells to be identified with both their rows and columns while CSS values are still being computed,
please share!"

What about a syntax like:

..tete{font: bold; text-align: left}
..titre{font-size: 1.1em}
..number{font: normal; text-align: right}
..badmark{font: bold red;}


<col id="pupil" class="tete"/><col id="math" class="number"/><col id="physics" class="number"/><col id="chemistry" class="number"/>
<tr class="titre"><td cln="pupil">topic</td><td cln="math">Maths</td><td cln="physics">Physics</td><td cln="chemistry">Chemistry</td></tr>
<tr><td cln="pupil">John Smith</td><td cln="math">75</td><td cln="physics chemistry">57</td></tr>
<tr><td cln="pupil">Mary Stuart</td><td cln="math">absent</td><td cln="physics" class="badmark">37</td><td cln="chemistry">95</td></tr>

Of course it's heavy but, doing this manually as I've just done, one of course copy and paste the rows and then just modify them.
An advantage is that for big tables it's more human readable than "table", where you have to count the number of "td" to know in which column you are.

Received on Friday, 26 December 2008 16:43:53 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:42 UTC