Help - Search - Members - Calendar
Full Version: TD right border space
HTMLHelp Forums > Web Authoring > Cascading Style Sheets
asmith
hey guys

I have a table, which i want it to be cellspacing= 0 . but the space between 2 tds become 7 px.

Is that possible ?


CODE
<table cellspacing="0" border="0">
<tr>
<td>
first content
</td>
<td>
Second content
</tr>
</tr>
</table>


I have tried a few things like :

td class="space"

.space { margin-left: 7px;}
or
.space {border-left-width : 7px;}

None seems to work.

Any idea?
pandy
Margin doesn't work with table cells. Border does, but a border must have a border-style to exist. Why can't you just use padding though?
asmith
hmm i just trick it. I aded another td in the middle with the width 7px.
pandy
So what's wrong with padding? blink.gif
asmith
i'm showing td borders.
pandy
I thought it was two cells in a larger table.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.