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

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 UTC