HTML CSS examples for CSS Widget:Table
Make 2 horizontally aligned tables to create ladder shape
<html> <head> <title>Lorem ipsum dolor sit amet, consectetur </title> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> table, th, td { border:2px solid Chartreuse; } .sideBySide {<!--from w w w .j ava 2 s. c o m--> display:inline-table; border-collapse:collapse; float:left; width:26%; } .sideBySide th { background-color:yellow; } </style> </head> <body> <p>Lorem ipsum dolor sit amet, consectetur </p> <table class="sideBySide"> <tbody> <tr> <th colspan="2">Lorem </th> </tr> <tr> <td>L</td> <td>Lore</td> </tr> </tbody> </table> <table class="sideBySide"> <tbody> <tr> <th colspan="2">Lorem </th> </tr> <tr> <td>L</td> <td>Lore</td> </tr> <tr> <td>L</td> <td>Lore</td> </tr> </tbody> </table> <table class="sideBySide"> <tbody> <tr> <th colspan="2">Lorem </th> </tr> <tr> <td>L</td> <td>Lore</td> </tr> <tr> <td>L</td> <td>Lore</td> </tr> <tr> <td>L</td> <td>Lore</td> </tr> </tbody> </table> <table class="sideBySide"> <tbody> <tr> <th colspan="2">Lorem </th> </tr> <tr> <td>L</td> <td>Lore</td> </tr> <tr> <td>L</td> <td>Lore</td> </tr> <tr> <td>L</td> <td>Lore</td> </tr> <tr> <td>L</td> <td>Lore</td> </tr> </tbody> </table> </body> </html>