Table last column with round corner background - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Column

Description

Table last column with round corner background

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">
.topbg {<!--from   w w  w.  jav a  2  s  . c om-->
   padding:6px;
   background-color:Chartreuse;
   width:51px;
   -webkit-border-top-left-radius:7px;
   -webkit-border-top-right-radius:7px;
   -moz-border-radius-topleft:7px;
   -moz-border-radius-topright:7px;
   border-top-left-radius:7px;
   border-top-right-radius:7px;
}

.cbg {
   padding:6px;
   background-color:yellow;
}

.bottombg {
   padding:6px;
   background-color:blue;
   -webkit-border-bottom-right-radius:7px;
   -webkit-border-bottom-left-radius:7px;
   -moz-border-radius-bottomright:7px;
   -moz-border-radius-bottomleft:7px;
   border-bottom-right-radius:7px;
   border-bottom-left-radius:7px;
}
</style> 
 </head> 
 <body> 
  <div class="table-responsive"> 
   <table class="table"> 
    <thead> 
     <tr> 
      <th>Lorem ipsum </th> 
      <th>Lorem ipsum do</th> 
      <th class="topbg">Lorem ip</th> 
     </tr> 
    </thead> 
    <tbody> 
     <tr> 
      <td>Lor</td> 
      <td>L</td> 
      <td class="cbg">Lo</td> 
     </tr> 
     <tr> 
      <td>Lor</td> 
      <td>L</td> 
      <td class="cbg">Lo</td> 
     </tr> 
     <tr> 
      <td>Lore</td> 
      <td>Lo</td> 
      <td class="cbg">Lor</td> 
     </tr> 
     <tr> 
      <td>Lore</td> 
      <td>Lo</td> 
      <td class="cbg">Lor</td> 
     </tr> 
     <tr> 
      <td>Lore</td> 
      <td>Lo</td> 
      <td class="bottombg">Lor</td> 
     </tr> 
    </tbody> 
   </table> 
  </div>  
 </body>
</html>

Related Tutorials