Removing spacing from table cells - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Cell

Description

Removing spacing from table cells

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
table.pindexAttr {
   border:2px solid Chartreuse;
   table-layout:fixed;
   border-collapse:collapse;
   width:100%;
}

.pindexAttr td {<!-- w ww . j  a  va 2  s  . com-->
   padding:11px;
   width:11px;
   line-height:10px;
   border:2px solid yellow;
}
</style> 
 </head> 
 <body> 
  <table class="pindexAttr "> 
   <tbody> 
    <tr> 
     <td>Lorem ipsum d</td> 
    </tr> 
    <tr> 
     <td>Lorem ipsum dolor</td> 
    </tr> 
    <tr> 
     <td>Lorem ipsum dolor</td> 
    </tr> 
    <tr> 
     <td>Lorem ipsum dolor</td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials