Tuesday, April 8th, 2008
Those of us who learned HTML early in the game are familiar with HTML table parameters cellpadding and cellspacing. In a positive way they were deprecated in HTML4 so you must use CSS to control the padding and spacing now.
Here is how you do it in CSS:
border-collapse: collapse;
A nice line to place in your global CSS file (if you use one) is:
table { border-collapse: collapse; }
Categories: Web Development
One Response to " Cellpadding and Cellspacing in CSS "
[...] is a follow up to the cellpadding and cellspacing post I made a while back. The cellpadding and cellspacing can be completely controlled in CSS. I [...]