Chris Schuld's Blog

personal musings on the composition of software

Written By: Chris Schuld 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 "

  1. [...] 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 [...]

Leave a Reply

About Chris

Chris Schuld

Thank you for visiting my website. I use this site for a myriad of things: maintaining software I have open sourced, connecting with my readers and friends and documenting all of this little things "I wished I would have written down." You can read more about me or contact me.


thanks for visiting... happy coding

Recent Comments