Quantcast
Channel: Set cellpadding and cellspacing in CSS? - Stack Overflow
Viewing all articles
Browse latest Browse all 31

Answer by suraj rawat for Set cellpadding and cellspacing in CSS?

$
0
0

Simply use CSS padding rules with table data:

td { 
    padding: 20px;
}

And for border spacing:

table { 
    border-spacing: 1px;
    border-collapse: collapse;
}

However, it can create problems in older version of browsers like Internet Explorer because of the diff implementation of the box model.


Viewing all articles
Browse latest Browse all 31

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>