Table tags has some attributes like CellSpacing and CellPadding ,but you can't set it in css directly.If you are using HTML editor like FrontPage,DW,or VS,you can't find these attributes.

To set these,you can enter this code in your css file:
table.dark
{
border
:#2962b9 1 solid;
border-collapse
:collapse;
}

Now lets test it.
<table class="dark">
  
<tr>
    
<td>Test</td>
  
</tr>
</table>
Result:

Thats right,
border-collapse:collapse;
 thits sentence means tables cellspacing and cellpadding equals 0.
You can also select this value:border-collapse:separate;In this way,cellspacing and cellpadding not equals 0 then.
Thats all;
posted on 2006-11-18 19:34  孙华勇  阅读(213)  评论(0编辑  收藏  举报