Designing complex table layout - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Layout

Description

Designing complex table layout

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<!--from  www.j av  a2s  .  c  om-->
 {
   width:100%;
   height:100px;
   text-align:center;
   border:3px solid Chartreuse;
   border-collapse:collapse;
}

td
 {
   border:3px solid yellow;
}

.container
 {
   width:100%;
}

.container .header
 {
   width:100%;
   height:201px;
   background:blue;
}

.container .slider
 {
   width:100%;
   height:501px;
   background:pink;
}
</style> 
 </head> 
 <body> 
  <table> 
   <tbody> 
    <tr> 
     <td> 
      <table> 
       <tbody> 
        <tr> 
         <td colspan="2">Lo</td> 
        </tr> 
        <tr> 
         <td>Lo</td> 
         <td>Lo</td> 
        </tr> 
        <tr> 
         <td>Lo</td> 
         <td>Lo</td> 
        </tr> 
       </tbody> 
      </table> </td> 
     <td> 
      <table> 
       <tbody> 
        <tr> 
         <td colspan="2">Lo</td> 
        </tr> 
        <tr> 
         <td>Lo</td> 
        </tr> 
       </tbody> 
      </table> </td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials