Re: CSS and table cell borders

by "Tim Rivera" <lists(at)timrivera.com>

 Date:  Mon, 20 Jan 2003 20:45:03 -0500
 To:  "Beth Adler" <doglover(at)cgmailbox.com>,
"HWG Basics" <hwg-basics(at)hwg.org>
 References:  s8x1s5
  todo: View Thread, Original
> 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.


Why would you have to add inline styles to every cell? Just use your style
sheet.


table.thistable td {border-right: solid 1px #000080}

<table class="thistable">
 <tr>
  <td>All these cells have a green border on the right side</td>
  <td>All these cells have a green border on the right side</td>
  <td>All these cells have a green border on the right side</td>
 </tr>
</table>


Tim

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