| 
	
 | 
 Posted by Gιrard Talbot on 01/10/06 01:27 
Ask Josephsen wrote : 
> Hi 
>  
> Thank you for the discussion, very interesting. David, you caught my problem  
> nicely "...a table with a hundred rows and ten columns...". My tables are  
> rather big and has various needs for aligning each column.  
 
I wonder if you are using tables appropriately here. Remember that  
tables should be used to present tabular data and nothing else. 
 
"Tables should not be used purely as a means to layout document content 
as this may present problems when rendering to non-visual media. 
Additionally, when used with graphics, these tables may force users to 
scroll horizontally to view a table designed on a system with a larger 
display. To minimize these problems, authors should use style sheets to 
control layout rather than tables." 
HTML 4.01, section 11.1 
http://www.w3.org/TR/html401/struct/tables.html#h-11.1 
 
HTML 4.01, ATAG 1.0, WCAG 1.0/2.0 and several usability/accessibility  
recommend to use tables only for tabular data. 
 
You may want to read my post in this forum in the thread with subject  
line "Layout using CSS vs. tables" and 
 
Table-based webpage design versus CSS-based webpage design: resources,  
explanations and tutorials 
http://www.gtalbot.org/NvuSection/NvuWebDesignTips/TableVsCSSDesign.html 
 
My wish is to 
> define how each column should align once for each table and save as much  
> markup as possible in each row. For this the <colgroup> and <col> tags seems  
> to be a fine solution - except it does not really work in firefox.  
 
That's bug 915 actually: 
 
Bug 915: implement inheritance of alignment attributes from columns  
(align, valign, char, charoff, (lang, dir)?) 
https://bugzilla.mozilla.org/show_bug.cgi?id=915 
 
You may try the -moz-box-align property (not tried so far) to  
compensate/workaround this issue: 
 
http://www.xulplanet.com/references/elemref/ref_StyleProperties.html 
 
Otherwise, Jukka's workaround is excellent. 
 
> The  
> number of columns is fixed (different from table to table though) so the  
> stylesheet solution might be a solution. 
 
GΓ©rard 
-- 
remove blah to email me
 
  
Navigation:
[Reply to this message] 
 |