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

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

From: Simetrical <simetrical@gmail.com>
Date: Fri, 26 Dec 2008 12:53:53 -0500
Message-ID: <7c2a12e20812260953p9368b5doa475d97f2483ecb6@mail.gmail.com>
To: mongolie2006-w3c@yahoo.fr
Cc: "CSS mailiing list W3C" <www-style@w3.org>

On Fri, Dec 26, 2008 at 11:43 AM, Henri de Solages
<mongolie2006-w3c@yahoo.fr> wrote:
> What about a syntax like:
>
> <style>
> ..tete{font: bold; text-align: left}
> ..titre{font-size: 1.1em}
> ..number{font: normal; text-align: right}
> ..badmark{font: bold red;}
> </style>
>
> (...)
>
> <doubleentry>
> <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>
> </doubleentry>
>
> 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.

You may as well just use <td class="column-pupil"> then.
Received on Friday, 26 December 2008 17:54:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:18 GMT