CSS and table cell borders

by "Beth Adler" <doglover(at)cgmailbox.com>

 Date:  Mon, 13 Jan 2003 22:03:27 -0700
 To:  "HWG Critique" <hwg-critique(at)hwg.org>
  todo: View Thread, Original
Hi,

I sent this to the Basics list but didn't get any replies, so maybe some of
you can help me.

I would like a 5 px dark red border around the outside of the table, and 1
px dark blue lines between the rows and columns of the Consignment Sale
table at www.beth1.netfirms.com (temporary address).

I can easily put 'border=1' in the table tag which puts a box around every
cell in the table.  This would be great, only I don't want every cell
outlined, I just want a single line.

I can also put 'border-right: solid 1px #000080' (or border-bottom or
whatever) in the stylesheet for all the td cells (except the last column),
which allows me to do exactly what I want, but I'd have to go through and
add 'class="list"' to every one separately (34 rows x 5 columns = 170
times!).  Since I have several tables other than this one, I can't use
search and replace.

If that is how I have to do it ok, but the simplicity of adding 'border=1'
to the table tag makes me want to find an easier way or to be able to modify
'border=1'.  How do you guys do it?

Comments on the rest of the page and site (main page and first two links
only so far) are welcome.  Hope you know what I'm talking about.  Thanks!

Beth
www.teddybearwebdesign.com

HTML: hwg-critique mailing list archives, maintained by Webmaster @ IWA