Table and Cell borders in FP (Full Version)

All Forums >> [Web Development] >> Microsoft FrontPage Help



Message


sarahtar -> Table and Cell borders in FP (11/4/2005 12:22:02)

Is there a way to have a cell of a table have borders on only the top and bottom, but not the sides? (or, is there a relatively easy way?)




fearnosurf -> RE: Table and Cell borders in FP (11/4/2005 13:01:35)

<table border="0" width="100%">
<tr>
<td style="border-left-width: 1px; border-right-width: 1px; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px"> </td>
</tr>
</table>




bobby -> RE: Table and Cell borders in FP (11/4/2005 18:39:39)

You can do it from the table properties menu as well. Under borders and shading if I recall...




Kitka -> RE: Table and Cell borders in FP (11/4/2005 22:55:00)

quote:

<table border="0" width="100%">
<tr>
<td style="border-left-width: 1px; border-right-width: 1px; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px"> </td>
</tr>
</table>


Wow - that works but is a very looong way of expressing it. [:o]

Given that one strength of CSS is reducing code bloat, I'd highly recommend this method instead:

<table border="0" width="100%">
<tr>
<td style="border:solid black; border-width:1px 0;">Cell contents</td>
</tr>
</table>


Change colour and width to suit your needs.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.0625