Welcome to WebHeadStart.org

Web Technologies

Sponsored By

WebHeadStart.org is currently in beta.
Please pardon our appearance as we work to provide you with the most comprehensive reference on today's web technologies.

Interested in advertising on WebHeadStart? Become an advertising partner today!

[WWW-HTML Mailing List Archive Home] [Messages By Thread] [Messages By Date]

Re: [XHTML2][CSS3] Tables: A proposal to support styling by columns

From: Lachlan Hunt <lachlan.hunt@iinet.net.au>
Date: Mon, 15 Dec 2003 13:52:17 +1100
Message-ID: <3FDD21E1.2070901@iinet.net.au>
To: ernestcline@mindspring.com
Cc: W3C HTML List <www-html@w3.org>

Ernest Cline wrote:

> Example 7
> <!-- An XHTMLish table -->
> <table>
>   <tr><th>1</td><th>2</th><th>3</th></tr>
>   <tr><th>4</td><td id="a">5<br />8</td><td>6</td></tr>
>   <tr><th>7</td><tc tref="a" /><td>9</td></tr>
> </table>
> 
> The <tc> element would take but a single attribute tref of type IDREF...

   Ignoring your errors above (and in most of your other examples), such 
as where you wrote "<th>1</td>", This is a reasonable idea, but it may 
need some improving.

Question 1.
   To write the equivalent of rowspan="3" (or colspan) would you just 
add additional <tc/> elements with the same tref value?
eg.
<table>
   <tr><th>1</td><th>2</th><th>3</th></tr>
   <tr><th>4</td><td id="a">5<br />8</td><td>6</td></tr>
   <tr><th>7</td><tc tref="a" /><td>9</td></tr>
   <tr><th>10</td><tc tref="a" /><td>12</td></tr>
</table>

Question 2.
   What would happen if an author used a <tc/> element with a reference 
to a non-adjacent cell? like this:
<table>
   <tr><td id="a">1</td><td>2</td><tc tref="a"/></tr>
</table>

CYA
...Lachy!
Received on Sunday, 14 December 2003 22:08:17 GMT
Valid XHTML 1.0! Valid CSS! Site Map | Privacy Policy | Terms of Use | WebHeadStart.org © 2005 All Rights Reserved.