CSS and table cell borders

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

 Date:  Sat, 11 Jan 2003 16:44:24 -0700
 To:  "HWG Basics" <hwg-basics(at)hwg.org>
  todo: View Thread, Original
Hi,

I'm still struggling to learn CSS better and am trying to figure out table
borders.  I want to put vertical lines between the columns and perhaps
horizontal lines between the rows as well in the Consignment Sale table at
www.beth1.netfirms.com (temporary address).

I know I can easily put 'border=1' in the table tag which immediately puts a
border around every cell in the table.  This would be great, only I don't
really like the look of it.  I can't change the border style or color.

I can also put 'border-right: solid 1px #000080' in the stylesheet for all
the td cells (except the last column) in that particular table, which allows
me to do exactly what I want, but I'd have to go through and add it 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 are welcome.  Thanks!

Beth
www.teddybearwebdesign.com

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