Add border radius on table row - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Row

Description

Add border radius on table row

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  ww  w  .  ja v  a  2  s .  c  o m-->
   border-collapse:separate;
   border-spacing:0 11px;
   margin-top:-11px;
}

td {
   border:2px solid Chartreuse;
   border-style:solid none;
   padding:11px;
   background-color:yellow;
}

td:first-child {
   border-left-style:solid;
   border-top-left-radius:11px;
   border-bottom-left-radius:11px;
}

td:last-child {
   border-right-style:solid;
   border-bottom-right-radius:11px;
   border-top-right-radius:11px;
}
</style> 
 </head> 
 <body> 
  <table> 
   <tbody> 
    <tr> 
     <td>Lor</td> 
     <td>Lor</td> 
     <td>Lor</td> 
    </tr> 
    <tr> 
     <td>Lor</td> 
     <td>Lor</td> 
     <td>Lor</td> 
    </tr> 
    <tr> 
     <td>Lor</td> 
     <td>Lor</td> 
     <td>Lor</td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials