Style table cell border to button effect - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Cell

Description

Style table cell border to button effect

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">
body {<!--from   w  w  w  .  j  a va  2s . c om-->
   background:Chartreuse;
}

table {
   border-width:0px;
   border-spacing:11px;
   border-style:outset;
   border-collapse:separate;
}

table td {
   padding:11px;
   background:yellow;
   border-right:2px solid blue;
   border-bottom:2px solid pink;
   margin-bottom:11px;
   vertical-align:top;
   border-spacing:11px;
   cellspacing:11px;
}
</style> 
 </head> 
 <body> 
  <table> 
   <tbody> 
    <tr> 
     <td> 
      <div> 
       <h6>Lorem ipsum</h6> 
       <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Aliquam erat volutpat. Vestibulum t</p> 
      </div> </td> 
     <td> 
      <div> 
       <h6>Lorem ipsum</h6> 
       <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit</p> 
      </div> </td> 
     <td> 
      <div> 
       <h6>Lorem ipsum</h6> 
       <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit</p> 
      </div> </td> 
    </tr> 
    <tr> 
     <td> 
      <div> 
       <h6>Lorem ipsum</h6> 
       <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit</p> 
      </div> </td> 
     <td> 
      <div> 
       <h6>Lorem ipsum</h6> 
       <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit</p> 
      </div> </td> 
     <td> 
      <div> 
       <h6>Lorem ipsum</h6> 
       <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit</p> 
      </div> </td> 
    </tr> 
    <tr> 
     <td> 
      <div> 
       <h6>Lorem ipsum</h6> 
       <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit</p> 
      </div> </td> 
     <td> 
      <div> 
       <h6>Lorem ipsum</h6> 
       <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Aliquam erat volutpat. Vestibu</p> 
      </div> </td> 
     <td> 
      <div> 
       <h6>Lorem ipsum</h6> 
       <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit</p> 
      </div> </td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials