Different number of Columns in rows of a table - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Row

Description

Different number of Columns in rows 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 .  jav a  2s  . co m-->
   border:2px solid Chartreuse;
}
</style> 
 </head> 
 <body> 
  <table> 
   <tbody> 
    <tr> 
     <td>L</td> 
     <td>L</td> 
     <td>L</td> 
     <td>L</td> 
     <td>L</td> 
     <td>L</td> 
    </tr> 
    <tr> 
     <td>L</td> 
     <td colspan="2">L</td> 
     <td>L</td> 
     <td>L</td> 
     <td>L</td> 
    </tr> 
    <tr> 
     <td>L</td> 
     <td colspan="5">L</td> 
    </tr> 
    <tr> 
     <td colspan="2">L</td> 
     <td>L</td> 
     <td colspan="2">L</td> 
     <td>L</td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials