Web Design Web Design Forum
Registration is free! Here you can view your subscribed threads, work with private messages and edit your profile and preferences Calendar Find other members Frequently Asked Questions Search
Home Web Design

Convenient web based access to our favorite web design Usenet groups

web design reviews

This is Interesting: Free Magazines for Graphics designers and webmasters  





  Last Thread  Next Thread
Author
Thread Post New Thread   

odd/even table rows
 

bill drescher




quote this post edit post

IP Loged report this post

Old Post  07-19-04 - 12:15 AM  
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 !)
--
Bill Drescher
william {at} TechServSys {dot} com


Post Follow-Up to this message ]
Re: odd/even table rows
 

Ben Shimmin




quote this post edit post

IP Loged report this post

Old Post  07-19-04 - 12:15 AM  
bill drescher <nobody@Spamcop.net>:
> 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 !)

<URL:http://www.alistapart.com/articles/zebratables/>

In short, no.

b.

--
Ben Shimmin (bas@bas.me.uk)                            <URL:http://bas.me.uk/[/url
]>.../gpg.bas.me.uk/>


Post Follow-Up to this message ]
Re: odd/even table rows
 

brucie




quote this post edit post

IP Loged report this post

Old Post  07-19-04 - 12:15 AM  
in post: <news:10flrhtsihsnifb@corp.supernews.com>
bill drescher <nobody@Spamcop.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/alt...lor-thingy.shit

> (yes, it is for tabular data !)

thats what they all say

--
b  r  u  c  i  e




Post Follow-Up to this message ]
Re: odd/even table rows
 

bill drescher




quote this post edit post

IP Loged report this post

Old Post  07-19-04 - 04:15 AM  
brucie wrote:

> in post: <news:10flrhtsihsnifb@corp.supernews.com>
> bill drescher <nobody@Spamcop.net> said:
>
> 
>
>
> http://moreshit.usenetshit.info/alt...lor-thingy.shit

still too much work, and classes are more intuitive

>
> 
>
>
> thats what they all say
>
columns are:
Date   Location	 results

looks like tabular data to me, maybe even to you.


--
Bill Drescher
william {at} TechServSys {dot} com


Post Follow-Up to this message ]
Re: odd/even table rows
 

Brian




quote this post edit post

IP Loged report this post

Old Post  07-19-04 - 09:16 AM  
bill drescher wrote:

> 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 ?

Not until CSS 3 is adopted. Hold your breath.  ;-)

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/


Post Follow-Up to this message ]
Re: odd/even table rows
 

Stan Brown




quote this post edit post

IP Loged report this post

Old Post  07-19-04 - 09:16 AM  
"bill drescher" <nobody@Spamcop.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.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator:      http://validator.w3.org/
CSS 2 spec:     http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator:      http://jigsaw.w3.org/css-validator/


Post Follow-Up to this message ]
Re: odd/even table rows
 

Stan Brown




quote this post edit post

IP Loged report this post

Old Post  07-19-04 - 05:16 PM  
"Stan Brown" <the_stan_brown@fastmail.fm> wrote in
comp.infosystems.www.authoring.stylesheets:
>"bill drescher" <nobody@Spamcop.net> wrote in
>comp.infosystems.www.authoring.stylesheets: 
>
>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.)

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator:      http://validator.w3.org/
CSS 2 spec:     http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator:      http://jigsaw.w3.org/css-validator/


Post Follow-Up to this message ]
Re: odd/even table rows
 

JayB




quote this post edit post

IP Loged report this post

Old Post  07-20-04 - 12:16 AM  
"bill drescher" <nobody@Spamcop.net> wrote in message
news:10fm5d2smdaahe9@corp.supernews.com...
> brucie wrote:
> 
>
> still too much work, and classes are more intuitive
> 
> columns are:
> Date   Location results
>
> looks like tabular data to me, maybe even to you.

Brucie's reply looks like sarcasm to me. Maybe not to you.

--
JayB




Post Follow-Up to this message ]
Re: odd/even table rows
 

bill drescher




quote this post edit post

IP Loged report this post

Old Post  07-20-04 - 05:17 PM  
Stan Brown wrote:
> "Stan Brown" <the_stan_brown@fastmail.fm> wrote in
> comp.infosystems.www.authoring.stylesheets:
> 
>
>
> 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.)
>

Thanks, that cut the work in half and is educational to boot.
Thank goodness for global find and replace as that makes the rest of the
job easy. (not a css construct, just HTML-Kit)

--
Bill Drescher
william {at} TechServSys {dot} com


Post Follow-Up to this message ]
Sponsored Links
 





All times are GMT. The time now is 04:34 AM. Post New Thread   
  Previous Last Thread   Next Thread next
Stylesheets archive | Show Printable Version | Email this Page | Subscribe to this Thread

Popular forums

Adobe Photoshop forum Macromedia Flash Web Site Design
Dreamweaver FrontPage forum
JavaScript Forum XML forum
Style Sheets VRML
Forum Jump:
Rate This Thread:

 

XML RSS Feed web design latest articles Syndicate our forum via XML or simple JavaScript

Web Design archive  Database administration help  


Top Home  -  Register  -  Control Panel   -  Memberlist  -  Calendar  -  Faq  -  Search Top