Create nested table for middle row - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Row

Description

Create nested table for middle row

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 td {
   border:2px solid Chartreuse;
}

table table {
   width:100%
}
</style> <!--  ww w.j a va2 s .c o  m-->
 </head> 
 <body> 
  <table> 
   <tbody> 
    <tr> 
     <td>L</td> 
     <td>L</td> 
     <td>L</td> 
     <td>L</td> 
    </tr> 
    <tr> 
     <td colspan="4"> 
      <table> 
       <tbody> 
        <tr> 
         <td>L</td> 
         <td>L</td> 
         <td>L</td> 
        </tr> 
       </tbody> 
      </table> </td> 
    </tr> 
    <tr> 
     <td>L</td> 
     <td>L</td> 
     <td>L</td> 
     <td>L</td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials