cell spacing

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am having some difficulties getting the cell spacing just right. I want all my cells to have a spacing of 5 except the ones along the edge of the page I want them to be flush with the table. Any suggestions. thanks for the help. Mat
 
You can't vary the cell spacing w/i a table
- all you can do is nest tables w/ different cell spacing is that's what your need

--




| I am having some difficulties getting the cell spacing just right. I want all my cells to have a spacing of 5 except the ones
along the edge of the page I want them to be flush with the table. Any suggestions. thanks for the help. Matt
|
 
Hi Matthew,
You can't do this with cellspacing it has to be set for the whole table.
Answers would be to use nested tables per Stefan's suggestion or experiment
with padding - you can set padding cell by cell rather than for the whole
table, for example

<style type="text/css">
#left{padding: 20px;}
#right{padding:0;}
</style>
<table cellpadding=0 cellspacing=0>
<tr>
<td id="left">this cell will have 20 pixels of padding</td>
<td id="right">this cell will have 0 padding</td>
</tr>
</table>

Jon
Microsoft MVP - FP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top