Make two tables side by side - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Layout

Description

Make two tables side by side

Demo Code

ResultView the demo in separate window

<html>
 <head></head> 
 <body> 
  <table border="1" cellspacing="0"> 
   <tbody> 
    <tr> 
     <td> 
      <table border="1" cellspacing="0"> 
       <tbody> 
        <tr> 
         <th>Lorem i</th> 
        </tr> 
        <tr> 
         <td>Lore</td> 
         <td>Lore</td> 
         <td>Lore</td> 
         <td>Lore</td> 
        </tr> 
        <tr> 
         <td>Lore</td> 
         <td>Lore</td> 
         <td>Lore</td> 
         <td>Lore</td> 
        </tr> 
       </tbody> 
      </table> </td> 
     <td> 
      <table border="1" cellspacing="0"> 
       <tbody> 
        <tr> 
         <th>Lorem i</th> 
        </tr> 
        <tr> 
         <td>Lore</td> 
         <td>Lor</td> 
         <td>Lore</td> 
         <td>Lore</td> 
        </tr> 
        <tr> 
         <td>Lore</td> 
         <td>Lore</td> 
         <td>Lore</td> 
         <td>Lore</td> 
        </tr> 
       </tbody> 
      </table> </td> 
    </tr> <!-- ww  w . ja  v  a2  s.c o m-->
   </tbody> 
  </table> 
  <table> 
  </table>  
 </body>
</html>

Related Tutorials