On Tue, 05 Aug 2008 22:07:06 -0400, Harlan Messinger
<hm************ *******@comcast .netwrote, quoted or indirectly quoted
someone who said :
>
Ah, no, the style attribute doesn't work like that. It doesn't include
any selectors, just the properties to be applied to tag itself and their
values. Selectors are used to assign properties to elements in style
elements and in external stylesheets.
Did the people who designed CSS every try USING this ruddy thing to
layout some tables?
Inline styles are a kludge. Ideally there should be none. You have all
your style stuff in the style sheet, not the HTML document.
It sounds like you are telling me you can't apply classes to columns
no matter what I do. I have to specify the style information in the
document itself. Yucch! That is antithecal to the whole CSS principle.
Arrgh!
Yes I have read the spec. But I could find nothing to solve my
problem. I originally presumed that browsers except IE were
non-compliant in understanding the obvious intended meaning of
<colgroup><co l class="behold">
It is not designed for "humans". It is written in a lawyerly way
designed to be accessible to as few people as possible. It is
designed as a sort of academic one-up-manship game. This is true of
nearly all specification documents.
A spec should have a auxiliary document that defines the same
information with a set of examples that illustrate the points of the
spec.
The practice would lead to far fewer misinterpretati ons.
If I had the power to fix this, here is the pedestrian but practical
syntax I would recommend
<table>
<colgroup><co l class="behold"> <col align="right"></colgroup applies
to header and body
<thead>
<colgroup><co l class="behold"> <col align="right"></colgroup applies
to header
</thead>
<tbody>
<colgroup><co l class="behold"> <col align="right"></colgroup applies
to table body
</tbody>
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com