Hi group

I was both depressed and happy, discovering in an article that <col> can 
be used to style a column (I had long forgotten the tag's existence 
:-)). I was depressed because I thought that it rendered the hours of 
development on my database-to-markup - script that stresses the "active 
column" on <http://visesangere.dk/viseopt.html>. I was happy to think of 
the prettyer code I could achieve without an "extra" class on each <td> 
in the "active" columns 40 rows...

SO I set out for extra exploration of the use, only soon to discover
1) the minor difference between HTML4 where no closing of the tag is 
needed, and XHTML 1 where it (of course) has to be closed, and
2) that it did _not_ work as expected at all, I couldn't get my Mozilla 
around to recognise my css along these lines ("col" is there for 
illustrational purposes only, in my stylesheet there was only the id):

col #activecol td {
   border... background...
}

Whereas something like:

col #activecol {
   border... background...
}

worked fine - *as long as the property was not defined for the td* - 
(which it will allways be in this table, as the changing background on 
every second row is mandatory).

Aparantly (as I later found stated on 
<http://learningforlife.fsu.edu/webmaster/references/xhtml/tags/table/col.cfm>) 
col has no children, and I cannot blame my mozilla for not regarding the 
td's as the col's children! :-(

So I can only use the col to define something that isn't already defined 
in my td's as these will have higher specificity (acording to my tests)

Is this so - definitely, or have I overlooked or misunderstood something 
here?

BTW: The best I can find on the matter on W3C is 
<http://www.w3.org/TR/xhtml1/dtds.html>. I have seen 
<http://css-discuss.incutio.com/?page=StylingColumns> and the link to 
Hixie's log, explaining a lot of it.

I look in vain for HTML and XHTML recommendation links on 
<http://css-discuss.incutio.com/?page=UsefulResources>.
I wonder why, as proper HTML use is quite central on the list, would it 
be wrong if I  add the following links:
"HTML 4.01 Specification" <http://www.w3.org/TR/REC-html40/>,
"XHTML™ 1.0 The Extensible HyperText Markup Language" 
<http://www.w3.org/TR/xhtml1/> and
"XHTML 1.1 Element ( Tag ) and Attribute Reference" 
<http://learningforlife.fsu.edu/webmaster/references/xhtml/tags/> with 
the comment: "XHTML reference in some detail and with examples."

to the list of resources?


Best regards

Jesper Brunholm






______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to