View Full Version : CSS and tables

Dec 22nd, 2006, 09:59 PM
Hi! L-l-ook at my problem carefully:
I want the main border of tables is removed and the other rows(<tr>) in the other rows should be "spaceless" and/or they should stick in each other. This is my code (correctness is rare).

/*My website's bg-color is black*/
table{border: black}
tr,td{spacing: 0}

Dec 22nd, 2006, 11:06 PM
Try the border-collapse: collapse declaration on the table element. It removes all border‐spacing between the tableís cells and makes their borders overlap so that you donít get doubled borders between adjacent cells.

You donít need to specify that borders should be removed though since the borders shouldnít be there by default. Just in case though, you can use border-width: 0 or border-style: none.

Dec 23rd, 2006, 07:59 AM