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

Answer by Amaresh Tiwari for Set cellpadding and cellspacing in CSS?

$
0
0

You can check the below code just create a index.html and run it.

<!DOCTYPE html>
<html>
   <head>
      <style>
         table{
         border-spacing:10px;
         }
         td{
         padding:10px;
         }
      </style>
   </head>
   <body>
      <table cellspacing="0" cellpadding="0">
         <th>Col 1</th>
         <th>Col 2</th>
         <th>Col 3</th>
         <tr>
            <td>1</td>
            <td>2</td>
            <td>3</td>
         </tr>
      </table>
   </body>
</html>

OUTPUT :

enter image description here


Viewing all articles
Browse latest Browse all 31

Trending Articles



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