CSS

Set Cellspacing Cellpadding in css

Ever wanted to Set Cellspacing Cellpadding in css but didn’t know where to begin? Worry no more. In this article, I am going to show you how to easily set cellspacing, cellpadding  in CSS. The CSS & HTML source code are provided & you can try experimenting with the values to suit your purpose. So read on to find out how to Set Cellspacing Cellpadding in css.

How to Set Cellspacing Cellpadding using CSS – Example

Example: Following is the code to Set Cellspacing Cellpadding using CSS

<style type="text/css">
/* For Cellspacing*/
table
{
border-collapse: collapse;
}

/* For Cellpadding */
table td, table th
{
padding: 0;
}
</style>
Simple, isn’t it?

If you know of any other ways to set cellspacing and cellpadding in css, please feel free to share by commenting below.

Share your thoughts, comment below now!

*

*