HighDots Forums  

Re: trying to set row color

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


Discuss Re: trying to set row color in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Osmo Saarikumpu
 
Posts: n/a

Default Re: trying to set row color - 10-29-2009 , 04:01 PM






Evertjan. kirjoitti:

Quote:
You do not show a tr part that is not covered by a td.
To quote TL: non sequitur.

Quote:
That some or all present browsers and perhaps the W3 specs
have implemented this illogicality of CSS syntax,
dos not mean we should follow it.
Hmm.. what's that illogicality and who's that we?

Quote:
The same as for <tr> goes for <thead> and <tbody>,
should they have background colour that is not visible by itself
but only for the pedegree TDs?
I must be more tired than I thought, 'cause I can't understand the question.

Quote:
See here that the backgrounds of the tr and tbody
in both middle rows are NOT coloured:
Ok, my fault for playing the empirical game. IOW, this proves nothing.

Quote:
I would prefer to use the complete syntax,
because that is what is implremented in fact:

table tbody tr td {background-color: blue;}
table.a tbody tr:hover td { background-color: #c9c9c9; }
table.b tbody:hover tr td { background-color: #c9c9c9; }
IIRC, superfluous references to elements when classes would suffice are
a hindrance?

Quote:
The idea that elements can cascade properties that they themselfs do not
show is correct, but only if they get that property from higher up the
cascade chain. To assign such property to that element itself, while at
present possible, seems ridiculous to me.
I'm not sure of your meaning, something like the following?

<style type="text/css">
tr {
display:block;
background-color:red;
height:100px;
}
td {
display:inline;
background-colorink;
height:50px;
}
</style>

Anyways, this has nothing to do with JS. Follow up to CIWAS.

--
Best wishes,
Osmo

Reply With Quote
  #2  
Old   
Evertjan.
 
Posts: n/a

Default Re: trying to set row color - 10-29-2009 , 04:11 PM






Osmo Saarikumpu wrote on 29 okt 2009 in comp.lang.javascript:

Quote:
Evertjan. kirjoitti:

You do not show a tr part that is not covered by a td.

To quote TL: non sequitur.

That some or all present browsers and perhaps the W3 specs
have implemented this illogicality of CSS syntax,
dos not mean we should follow it.

Hmm.. what's that illogicality and who's that we?
Ar you trying to be smart?


Quote:
The same as for <tr> goes for <thead> and <tbody>,
should they have background colour that is not visible by itself
but only for the pedegree TDs?

I must be more tired than I thought, 'cause I can't understand the
question.
Perhaps you are not tired at all, but ...

Quote:
See here that the backgrounds of the tr and tbody
in both middle rows are NOT coloured:

Ok, my fault for playing the empirical game. IOW, this proves nothing.
Did you think I was trying to prove anything?

Quote:
I would prefer to use the complete syntax,
because that is what is implremented in fact:

table tbody tr td {background-color: blue;}
table.a tbody tr:hover td { background-color: #c9c9c9; }
table.b tbody:hover tr td { background-color: #c9c9c9; }

IIRC, superfluous references to elements when classes would suffice
are a hindrance?
That is not the [read my] point.


Quote:
The idea that elements can cascade properties that they themselfs do
not show is correct, but only if they get that property from higher
up the cascade chain. To assign such property to that element itself,
while at present possible, seems ridiculous to me.

I'm not sure of your meaning, something like the following?

style type="text/css"
tr {
display:block;
background-color:red;
height:100px;
}
td {
display:inline;
background-colorink;
height:50px;
}
/style

Anyways, this has nothing to do with JS. Follow up to CIWAS.
Anyway, quite so.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

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 - 2009, Jelsoft Enterprises Ltd.