homepage Welcome to WebmasterWorld Guest from 54.211.7.174
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Structuring Table Headers
semantics
benihana




msg:3774973
 1:01 pm on Oct 28, 2008 (gmt 0)

I have some semi-complex data tables, and need ideas for structuring the headers:

the headers layout is like so:

Product : Sales value : commmission value : EPC
________: ...$...kr..:.......$....kr... :

So the product and epc are straight forward, but the sales and commission have sub header columns for currency.

code is structured:

<thead>
<tr>
<th rowspan="2">
Programme Name
</th>
<th colspan="3">Sales Value </th>
<th colspan="3">
Commission value
</th>
<th rowspan="2">
EPC
</th>
</tr>
<tr> <th>&pound;</th><th>$</td><th>kr</th> <th>&pound;</th><th>$</td><th>kr</th></tr>
</thead>

but to my mind this is not tying the currency with the respective headers.

suggestions welcome.

thanks

 

Receptional Andy




msg:3774990
 1:33 pm on Oct 28, 2008 (gmt 0)

I'm not quite clear on what you're trying to do, but are you aware of the "scope" attribute for table cell headings? E.g. <th scope="col">. See Tables in HTML documents [w3.org] for more details.

benihana




msg:3775608
 9:24 am on Oct 29, 2008 (gmt 0)

thanks - i think my ascii diagram didnt really describe the issue very well, however I have found a solution.

daveVk




msg:3775613
 9:56 am on Oct 29, 2008 (gmt 0)

As well as, or instead of, the sub headers I would prefix the prices in body of the table with the currency symbol. It would be cleaner and probably more readable without the sub headings ?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved