![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a long table and I want to have the alternating rows slightly different colors for clarity. Is there any way to avoid using a class designation in each tr ? (yes, it is for tabular data !) |
#3
| |||
| |||
|
|
in post: <news:10flrhtsihsnifb (AT) corp (DOT) supernews.com bill drescher <nobody (AT) Spamcop (DOT) net> said: I have a long table and I want to have the alternating rows slightly different colors for clarity. Is there any way to avoid using a class designation in each tr ? http://moreshit.usenetshit.info/alte...or-thingy.shit |
| (yes, it is for tabular data !) thats what they all say columns are: |
#4
| |||
| |||
|
|
I have a long table and I want to have the alternating rows slightly different colors for clarity. Is there any way to avoid using a class designation in each tr ? |
#5
| |||
| |||
|
|
"bill drescher" <nobody (AT) Spamcop (DOT) net> wrote in comp.infosystems.www.authoring.stylesheets: I have a long table and I want to have the alternating rows slightly different colors for clarity. Is there any way to avoid using a class designation in each tr ? You don't have to class _every_ tr, but you do have to class either each even row or each odd row. There's no way out there that works in IE. |
#6
| |||
| |||
|
|
brucie wrote: in post: <news:10flrhtsihsnifb (AT) corp (DOT) supernews.com bill drescher <nobody (AT) Spamcop (DOT) net> said: I have a long table and I want to have the alternating rows slightly different colors for clarity. Is there any way to avoid using a class designation in each tr ? http://moreshit.usenetshit.info/alte...or-thingy.shit still too much work, and classes are more intuitive (yes, it is for tabular data !) thats what they all say columns are: Date Location results looks like tabular data to me, maybe even to you. |
#7
| |||
| |||
|
|
"Stan Brown" <the_stan_brown (AT) fastmail (DOT) fm> wrote in comp.infosystems.www.authoring.stylesheets: "bill drescher" <nobody (AT) Spamcop (DOT) net> wrote in comp.infosystems.www.authoring.stylesheets: I have a long table and I want to have the alternating rows slightly different colors for clarity. Is there any way to avoid using a class designation in each tr ? You don't have to class _every_ tr, but you do have to class either each even row or each odd row. There's no way out there that works in IE. Sorry -- that last sentence makes no sense. What I meant to say was that no way out there will work with IE, _other_ than classing each even row or classing each odd row. For instance, if you class each even row with <tr class="even">, your CSS would be: table tr td { /* odd row stuff */ } table tr.even td { /* even row stuff */ } (As others have posted, the real solution is CSS3, but hardly any browsers support it. Since IE doesn't, and IE users dominate the market, it hardly matters what other browsers -- if any -- support CSS3.) |
![]() |
| Thread Tools | |
| Display Modes | |
| |