create two tables, side by side with headings - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Caption

Description

create two tables, side by side with headings

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
 </head> <!--from www  . j a v a  2s . co m-->
 <body> 
  <table style="width:100%"> 
   <tbody> 
    <tr> 
     <th colspan="2"> <h2>Lorem ipsum dolor </h2> </th> 
     <th colspan="2"> <h2>Lorem ipsum</h2> </th> 
    </tr> 
    <tr> 
     <td style="text-align: left;"> <a href="">Lorem </a> </td> 
     <td style="text-align: right; padding-right: 20px"> <a href="">Lorem </a> </td> 
     <td style="text-align: left;"> <a href="">Lorem ipsum </a> </td> 
     <td style="text-align: right; padding-right: 20px"> <a href="">Lorem ipsum </a> </td> 
    </tr> 
    <tr> 
     <td style="text-align: left; "> <a href="">Lorem </a> </td> 
     <td style="text-align: right; padding-right: 20px"> <a href="">Lorem </a> </td> 
     <td style="text-align: left;"> <a href="">Lorem ipsum </a> </td> 
     <td style="text-align: right; padding-right: 20px"> <a href="">Lorem ipsum </a> </td> 
    </tr> 
    <tr> 
     <td style="text-align: left;"> <a href="">Lorem </a> </td> 
     <td style="text-align: right; padding-right: 20px"> <a href="">Lorem </a> </td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials