Fw: Tables question.

by "Art Zoller Wagner" <art(at)zollerwagner.com>

 Date:  Mon, 3 Feb 2003 20:06:36 -0500
 To:  <hwg-basics(at)hwg.org>,
"Beauford.2002" <beauford.2002(at)rogers.com>
  todo: View Thread, Original
Hi, Beauford,

[quote]I have a guestbook and the entries are in a table, but I want to have
it so every second entry is the opposite colour (i.e. white on black then
black on white - or something like that, I'll figure the colours out later).
Is this possible with just HTML or would I need to use some kind of style
sheet - or something else altogether? Beauford[/quote]

Did you want this to format itself automatically or are you going to do each
row by hand?

If it's done automatically, I can imagine creating a little script that
assigns one of two css classes to alternating rows. I'm not sure, but I
would tend to apply the classes to the <td> and not the <tr> tags.

If I was doing it by hand, I'd do the same thing: use css with two
alternating class for each table row. You could also do it with <span> or
<div> tags, I think, within table cells, but that probably makes less sense.

For a better answer, you may need to explain how you're processing these
entries in the guestbook.

HTH, Art

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA