Group a table rows - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Row

Description

Group a table rows

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, th, td {
   border:2px solid Chartreuse;
   border-collapse:collapse;
}
</style> <!--from   w w  w.  j a  va  2s .  c o  m-->
 </head> 
 <body> 
  <table> 
   <tbody> 
    <tr> 
     <th>Lorem</th> 
     <th>Lore</th> 
    </tr> 
    <tr> 
     <td rowspan="4">Lorem i</td> 
    </tr> 
    <tr> 
     <td>Lore</td> 
    </tr> 
    <tr> 
     <td>Lore</td> 
    </tr> 
    <tr> 
     <td>Lore</td> 
    </tr> 
    <tr> 
     <td rowspan="4">Lorem i</td> 
    </tr> 
    <tr> 
     <td>Lore</td> 
    </tr> 
    <tr> 
     <td>Lore</td> 
    </tr> 
    <tr> 
     <td>Lore</td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials