tags:

views:

23

answers:

2

Hi,

I want to create a table, where cellspacing is set to 0. Currently I have the following HTML which works correctly. But I want to put the cellspacing to the CSS, but can't find the correct style for it.

<table class="overviewGrid" id="OrderTable" cellspacing="0px">
</table>

Can anybody help me? Thx in advance

+2  A: 
table {
  border-collapse: collapse;
}
Māris Kiseļovs
yes it worked. Thanx for the hint.
BitKFu
+1  A: 

The CSS equivalent of <table>'s cellspacing attribute is border-spacing. However, Māris Kiseļovs' answer (border-collapse) is the one you should use to remove the cell spacing.

BoltClock