Table Cell Padding and Spacing using CSS

Posted: 11th October 2012 in css
Tags:

Okay folks I’m not going to lie. This is a blatant copy of a post on Stack Overflow, but its something I keep forgetting and one for the memory banks.

Here’s the original post by 2astalavista

DEFAULT:

enter image description here

CELLSPACING:

controls the space between table cells

enter image description here

CELLPADDING:

sets the amount of space between the contents of the cell and the cell wall

enter image description here

BOTH:

enter image description here

BOTH SPECIAL:

enter image description here

http://jsfiddle.net/H4emK/

Advertisements
Comments

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s