Forum Moderators: open

Message Too Old, No Replies

How do I turn off the borders on columns

I have 9 columns but among 3 of them I don't want borders

         

JaOtEaY

11:05 pm on Mar 3, 2004 (gmt 0)

10+ Year Member



This is my layout, and I don't want those 3 cols to have borders:

<table>
<colgroup span="9">
<col />
<col class="noBorderRight" />
<col class="noBorder" />
<col class="noBorder" />
<col />
<col />
<col />
<col />
<col />

</colgroup>

Also I do need the rest of the col's to have borders, just not these three.

Any ideas?

ip2665

1:01 am on Mar 4, 2004 (gmt 0)

10+ Year Member



Hi,

You could try by putting a table inside your column.
If you put "border" in a table it will automatically
draw the whole cells in a table. They call it
nested table.

example:

<table>
<tr><td><table 1 with border><tr><td>bla bla bla</td>
</tr>
</table 1>
</td>
<td><table 2 no border><tr><td>ble ble ble</td>
</tr>
</table 2>
</td>
</tr>

I hope this will help.

PatomaS

12:28 am on Mar 5, 2004 (gmt 0)

10+ Year Member



Hello

Well, you can try with a simple style like this in you page

<style type="text/css" type="text/css">
.border{
border-right-width: 1px;
border-left-width: 1px;
border-right-style: solid;
border-left-style: solid;
border-right-color: #000000;
border-left-color: #000000;
}
</style>

<body>
<table width="200" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20%">123456</td>
<td width="20%" class="border">123456</td>
<td width="20%" class="border">123456</td>
<td width="20%">123456</td>
<td width="20%">123456</td>
</tr>
...
</table>
</body>

Of course it is not exactly what you want, but you can try changing values and positioning of the class in the cells

Good luck