Set Border Radius for each row in a table - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Row

Description

Set Border Radius for each row in a 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">
td:first-child {<!--from  w  w w.jav a 2  s. co m-->
   -moz-border-radius:11px 0 0 11px;
   -webkit-border-radius:11px 0 0 11px;
}

td:last-child {
   -moz-border-radius:0 11px 11px 0;
   -webkit-border-radius:0 11px 11px 0;
}

td {
   background:red;
}
</style> 
 </head> 
 <body> 
  <table> 
   <tbody> 
    <tr> 
     <td>Lorem</td> 
     <td>Lorem i</td> 
    </tr> 
    <tr> 
     <td>Lorem i</td> 
     <td>Lore</td> 
    </tr> 
    <tr> 
     <td>Lorem ip</td> 
     <td>Lor</td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials