Possible Duplicate:
How to set cellpadding & cellspacing in CSS?
i have a little problem, i don't know how i can make my CSS style to remove cellpadding and cellspacing.
i hobe i can be helpet.
table {
border-collapse: collapse;
}
th, td {
padding: 0;
}
The accepted answer of border-collapse:collapse; is not the right way to get rid of cellspacing. It works for simple solid border styles, but it is easily seen to be wrong if td{border} is set to something complicated, like inset or outset. The right answer is border-spacing:0;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With