Page is a not externally linkable
- Code, Content, and Presentation
-- CSS
---- borders


alexjc - 12:41 am on Aug 26, 2001 (gmt 0)


You will have to specify the class of the start and end cells, but the ones in the middle you can set a default for. You'll need content in each cell for the borders to format correctly in CSS1.


<style>
table.mytab td { border-width: 0 1px 0 0; ... } # default case
table.mytab td.s { border-width: 1px 0 0 0; ... } # start
table.mytab td.e { border-width: 0 0 1px 0; ... } # end
</style>

<table class=mytab>
<tr><td class=s>start</td> <td>middle</td> <td>repeat</td> <td class=e>end</td></tr>
</table>

You'll have to play around with the border widths... i can't remember the order they are specified with using 4 parameters.

Hope that helps.

Alex


Thread source:: http://www.webmasterworld.com/css/36.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com