Home > Programming > Cellpadding with CSS

Cellpadding with CSS

If you want to remove style settings from your html and move it into a style sheet, you may find problems with the cellpadding attribute in CSS if you are trying to remove empty space between cells.  There is no cellpadding attribute in CSS, but you can use the following code to get the same effect as cellpadding=0.


Then just go ahead and build your CSS classes and the effects will cascade throughout your table styles.

Categories: Programming Tags: ,
  1. No comments yet.
  1. No trackbacks yet.

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

%d bloggers like this: