Cellpadding and Cellspacing in CSS

- 08 May 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; }

Related Posts: Extracting Smarty variables from source » Installing vzdump on CentOS 5.4 (32-bit) » Dumping Addresses from phplist » Adding NRPE (Nagios) to CentOS \/ RHEL Servers » Adding the REMI Repository to CentOS / RHEL / RedHat »

comments powered by Disqus