HighDots Forums  

table lists with different color on pair or unpair rows

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


Discuss table lists with different color on pair or unpair rows in the Cascading Style Sheets forum.



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

Default table lists with different color on pair or unpair rows - 08-14-2003 , 08:15 AM






Hello NG,

does anyone here know a way to format in a table rows 1, 3, 5, etc.
(unpair) with e.g. yellow background and rows 2, 4, 6, etc. (pair)
with e.g. grey background in order to make such tables more readable
as lists.

But without using class="yellow" in each unpair row and using
class="grey" for each pair row.

The table will get very long. So ading a class="..." to each row will
make the file size quite big.

I do not think there is any way, but who knows, So I asked.

Thanks in advance for any answer.

Klaus

Reply With Quote
  #2  
Old   
AT
 
Posts: n/a

Default Re: table lists with different color on pair or unpair rows - 08-15-2003 , 06:18 PM






Hello Andrew,

"Andrew Thompson" <andrew64 (AT) bigNOSPAMpond (DOT) com> wrote

Quote:
The table will get very long. So ading a class="..." to each row will
make the file size quite big.

If the table will get very long, it sounds like you are
dealing with a file size that is quite big anyway. You
might consider breaking the table into logical subsections
before you go any further.
Hmm, as far as I can see, there will be only a maximum of two possible subsections.

Quote:
Having said that, you can reduce the CSS overhead to just
5 chars per table row..
http://www.lensescapes.com/tst/tablerows.jsp
Yes, seems to be the smallest solution.

Thank you very much.

Klaus Schulz


Reply With Quote
  #3  
Old   
Andrew Thompson
 
Posts: n/a

Default Re: table lists with different color on pair or unpair rows - 08-15-2003 , 10:06 PM



"Klaus Schlz" <klsgfx (AT) yahoo (DOT) de> wrote

Quote:
"Andrew Thompson" <andrew64 (AT) bigNOSPAMpond (DOT) com> wrote

The table will get very long. So ading a class="..." to each row will
make the file size quite big.

If the table will get very long, it sounds like you are
dealing with a file size that is quite big anyway. You
might consider breaking the table into logical subsections
before you go any further.

Hmm, as far as I can see, there will be only a maximum of two possible
subsections.

I was thinking not so much the 'logical' separation
of data that you are (e.g. widgets verse doohickeys)
but of a much more generic break-up of the data..

Widget (entries 451-500) with perhaps links to..
'top of table'
'entries 401 - 450' (previous) &
'entries 501 - 550' (next)
...above the table of 50 widgets.

(I have been trawling through some very long
tables recently!)

Quote:
Having said that, you can reduce the CSS overhead to just
5 chars per table row..
http://www.lensescapes.com/tst/tablerows.jsp

Yes, seems to be the smallest solution.

Thank you very much.
You are welcome

--
Andrew Thompson
http://www.lensescapes.com/
http://www.physci.org/
http://www.1point1c.org/





Reply With Quote
  #4  
Old   
AT
 
Posts: n/a

Default Re: table lists with different color on pair or unpair rows - 08-18-2003 , 02:26 AM



"Andrew Thompson" <andrew64 (AT) bigNOSPAMpond (DOT) com> wrote

Quote:
Hmm, as far as I can see, there will be only a maximum of two possible
subsections.

I was thinking not so much the 'logical' separation
of data that you are (e.g. widgets verse doohickeys)
but of a much more generic break-up of the data..
Customer wants _one_ page. He will get what he wants. :-) Perhaps I
will try to split the table into tow or more parts for better loading.


Klaus Schulz


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.