HighDots Forums  

Solution! Alternating table row colors (fun with CSS Expressions)

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Solution! Alternating table row colors (fun with CSS Expressions) in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #41  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: Solution! Alternating table row colors (fun with CSS Expressions) - 09-13-2004 , 10:39 AM






gdv1000 (AT) hotmail (DOT) com (Garmt de Vries) wrote:

Quote:
Why not use <col> and set classes only once for every column?
And then? If you set <col class="foo">, how are you going to use the
class? Table cells are by definition subelements ("children") of <tr>
elements, never subelements of <col> elements. So if setting
..foo { ... }
seems to work, it should be regarded as a browser bug. This is of course
very inconvenient to authors.

--
Yucca, http://www.cs.tut.fi/~jkorpela/


Reply With Quote
  #42  
Old   
Chris Morris
 
Posts: n/a

Default Re: Solution! Alternating table row colors (fun with CSS Expressions) - 09-13-2004 , 10:47 AM






"Jukka K. Korpela" <jkorpela (AT) cs (DOT) tut.fi> writes:
Quote:
gdv1000 (AT) hotmail (DOT) com (Garmt de Vries) wrote:
Why not use <col> and set classes only once for every column?

And then? If you set <col class="foo">, how are you going to use the
class? Table cells are by definition subelements ("children") of <tr
elements, never subelements of <col> elements. So if setting
.foo { ... }
seems to work, it should be regarded as a browser bug. This is of course
very inconvenient to authors.
http://www.w3.org/TR/CSS2/tables.html#table-layers seems to imply that
(provided the table row (groups) and cells have a transparent
background) the background colour from the col should be used.

http://www.w3.org/TR/CSS2/tables.html#q4 seems to agree.

--
Chris


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.