View Full Version : CSS and tables

12-22-2006, 08: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}

12-22-2006, 10: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.

12-23-2006, 06:59 AM