Create continuous border line for table - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Border

Description

Create continuous border line for table

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 {<!--from  w  w w .  j  a  v a  2s  .co  m-->
   border-spacing:0;
}

#table tr:first-of-type td {
   font-size:19pt;
   color:Chartreuse;
   background-color:yellow;
   text-align:center;
   font-family:"Arial Bold";
   height:19px;
}

#table tr:not(:first-of-type) {
   font-family:"Arial Regular";
   font-size:15pt;
   color:blue;
}

td {
   padding-top:19px;
   padding-bottom:19px;
   padding-right:58px;
   border-style:none none solid none;
}

tr td:last-of-type {
   padding-right:0;
}
</style> 
 </head> 
 <body> 
  <table id="table"> 
   <tbody> 
    <tr> 
     <td>Lorem ipsu</td> 
     <td>Lorem ipsum dolor</td> 
     <td>Lorem ipsum dolor s</td> 
    </tr> 
    <tr> 
     <td>Lorem ipsum </td> 
     <td>Lor</td> 
     <td>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Aliquam erat volutpat</td> 
    </tr> 
    <tr> 
     <td>Lorem ipsum dolor sit am</td> 
     <td>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie la</td> 
     <td>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Aliquam e</td> 
    </tr> 
    <tr> 
     <td>Lorem ipsum dolor </td> 
     <td>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum.</td> 
     <td>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Ali</td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials