You are here: Re: using "col" and "colgroup" tags in firefox?!? « HTML « IT news, forums, messages
Re: using "col" and "colgroup" tags in firefox?!?

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]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация