table lists with different color on pair or unpair rows

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Klaus Schlz

    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
  • Klaus Schlz

    #2
    Re: table lists with different color on pair or unpair rows

    Hello Andrew,

    "Andrew Thompson" <andrew64@bigNO SPAMpond.com> wrote in message news:<ZcM_a.340 39$bo1.26561@ne ws-server.bigpond. net.au>...[color=blue][color=green]
    > > The table will get very long. So ading a class="..." to each row will
    > > make the file size quite big.[/color]
    >
    > 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.[/color]

    Hmm, as far as I can see, there will be only a maximum of two possible subsections.
    [color=blue]
    > Having said that, you can reduce the CSS overhead to just
    > 5 chars per table row..
    > http://www.lensescapes.com/tst/tablerows.jsp[/color]

    Yes, seems to be the smallest solution.

    Thank you very much.

    Klaus Schulz

    Comment

    • Andrew Thompson

      #3
      Re: table lists with different color on pair or unpair rows

      "Klaus Schlz" <klsgfx@yahoo.d e> wrote in message
      news:d8b5f608.0 308151518.2602e f11@posting.goo gle.com...[color=blue]
      > "Andrew Thompson" <andrew64@bigNO SPAMpond.com> wrote in message[/color]
      news:<ZcM_a.340 39$bo1.26561@ne ws-server.bigpond. net.au>...[color=blue][color=green][color=darkred]
      > > > The table will get very long. So ading a class="..." to each row will
      > > > make the file size quite big.[/color]
      > >
      > > 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.[/color]
      >
      > Hmm, as far as I can see, there will be only a maximum of two possible[/color]
      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!)
      [color=blue][color=green]
      > > Having said that, you can reduce the CSS overhead to just
      > > 5 chars per table row..
      > > http://www.lensescapes.com/tst/tablerows.jsp[/color]
      >
      > Yes, seems to be the smallest solution.
      >
      > Thank you very much.[/color]

      You are welcome

      --
      Andrew Thompson






      Comment

      • Klaus Schlz

        #4
        Re: table lists with different color on pair or unpair rows

        "Andrew Thompson" <andrew64@bigNO SPAMpond.com> wrote in message news:<_ch%a.369 82$bo1.34596@ne ws-server.bigpond. net.au>...[color=blue][color=green]
        > > Hmm, as far as I can see, there will be only a maximum of two possible[/color]
        > 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..[/color]

        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

        Comment

        Working...