Make a table using col expand and rowspan - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Row

Description

Make a table using col expand and rowspan

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 {<!--from w ww  .j  a  v  a 2s .  c  om-->
   border:3px solid Chartreuse;
}
</style> 
 </head> 
 <body> 
  <table> 
   <tbody> 
    <tr> 
     <td colspan="6">Lor</td> 
     <td colspan="11">Lor</td> 
    </tr> 
    <tr> 
     <td colspan="2">Lor</td> 
     <td colspan="2">Lor</td> 
     <td colspan="2">Lor</td> 
     <td rowspan="2">Lor</td> 
     <td rowspan="2">Lor</td> 
     <td rowspan="2">Lor</td> 
     <td rowspan="2">Lor</td> 
     <td rowspan="2">Lor</td> 
     <td rowspan="2">Lor</td> 
     <td rowspan="2">Lor</td> 
     <td rowspan="2">Lor</td> 
     <td rowspan="2">Lor</td> 
     <td rowspan="2">Lor</td> 
     <td rowspan="2">Lor</td> 
    </tr> 
    <tr> 
     <td>Lor</td> 
     <td>Lor</td> 
     <td>Lor</td> 
     <td>Lor</td> 
     <td>Lor</td> 
     <td>Lor</td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials