Click to See Complete Forum and Search --> : css style for table leaving gaps


jacen6678
07-29-2003, 05:34 PM
I am trying to develop a style for tables that leaves no gaps, padding, spacing, or borders between rows or cells. The style is:

.structure_table
{
border-spacing: 0;
border-style: none;
margin: 0;
padding: 0;
}

In trying to get it to work, I have added extra properties which have had no noticable effect:
.structure_table
{
border: 0;
border-spacing: 0;
border-style: none;
cell-spacing: 0;
display: table;
margin: 0;
padding: 0;
}

No matter what I do, I get a thin gap row between elements in my table. The cellspacing=0 attribute removes this gapspace. Does anyone know what css prpoerty will similarly remove this gapspace?

pyro
07-29-2003, 05:41 PM
Try using border-collapse: collapse;

jacen6678
07-29-2003, 08:44 PM
Thanks! That was exactly the answer I needed.

pyro
07-29-2003, 11:00 PM
You're welcome... :)