Use row span on the last row of a table - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Row

Description

Use row span on the last row of 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<!--   w w w .j  a va  2 s.  com-->
 {
   padding:6px;
   border:2px solid Chartreuse;
}

.spacer
 {
   border:0;
   padding:0;
   height:31px;
}
</style> 
 </head> 
 <body> 
  <table> 
   <tbody> 
    <tr> 
     <td class="spacer"></td> 
     <td>Lorem</td> 
     <td>Lorem</td> 
     <td rowspan="2">Lorem</td> 
    </tr> 
    <tr> 
     <td class="spacer"></td> 
     <td rowspan="2" colspan="2">Lorem</td> 
    </tr> 
    <tr> 
     <td class="spacer"></td> 
     <td>Lorem</td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials