473,387 Members | 1,379 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

table lists with different color on pair or unpair rows

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
Jul 20 '05 #1
3 3400
Hello Andrew,

"Andrew Thompson" <an******@bigNOSPAMpond.com> wrote in message news:<Zc*******************@news-server.bigpond.net.au>...
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.
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
Jul 20 '05 #2
"Klaus Schlz" <kl****@yahoo.de> wrote in message
news:d8**************************@posting.google.c om...
"Andrew Thompson" <an******@bigNOSPAMpond.com> wrote in message

news:<Zc*******************@news-server.bigpond.net.au>...
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!)
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/

Jul 20 '05 #3
"Andrew Thompson" <an******@bigNOSPAMpond.com> wrote in message news:<_c*******************@news-server.bigpond.net.au>...
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
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Gordon | last post by:
I have 2 tables t and t1. In this case, t1 is a copy of t. I want to delete rows from t1 based on criteria on the t table and a relationship between t ad t1 (in this case the id column). In the...
7
by: Warren Wright | last post by:
Hello, We maintain a 175 million record database table for our customer. This is an extract of some data collected for them by a third party vendor, who sends us regular updates to that data...
36
by: toedipper | last post by:
Hello, I am designing a table of vehicle types, nothing special, just a list of unique vehicle types such as truck, lorry, bike, motor bike, plane, tractor etc etc For the table design I am...
61
by: Toby Austin | last post by:
I'm trying to replace <table>s with <div>s as much as possible. However, I can't figure out how to do the following… <table> <tr> <td valign="top" width="100%">some data that will...
4
by: Piotr Filip Mieszkowski | last post by:
Hello, I like both C++ and Lisp and sometimes try to mix their ideas in the code I write. Recently I started to think about writing a pair class similar to the CONS in Lisp. (For those of you...
4
by: Laura | last post by:
Here's the situation: I'm trying to use an update query to copy data from one row to another. Here is the situation: I have 5 companies that are linked to each other. I need to show all 5...
6
by: jjturon | last post by:
Can anyone help me?? I am trying to pass a Select Query variable to a table using Dlookup and return the value to same select query but to another field. Ex. SalesManID ...
117
by: phil-news-nospam | last post by:
Is there really any advantage to using DIV elements with float style properies, vs. the old method of TABLE and TR and TD? I'm finding that by using DIV, it still involves the same number of...
51
by: Joerg Schoen | last post by:
Hi folks! Everyone knows how to sort arrays (e. g. quicksort, heapsort etc.) For linked lists, mergesort is the typical choice. While I was looking for a optimized implementation of mergesort...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.