HTML CSS examples for CSS Widget:Table
Get two tables to align beside each other
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #zero-table {<!--from w w w.java 2 s .c o m--> float:left; } #zero-data { border:2px solid Chartreuse; height:201px; width:201px; text-align:center; } #table-12 tr { display:inline-block; } .data-1234 { border:2px solid yellow; width:96px; height:96px; text-align:center; } #table-34 tr { display:inline-block; } </style> </head> <body> <table id="zero-table"> <tbody> <tr id="zero-row"> <td id="zero-data">L</td> </tr> </tbody> </table> <table id="table-12"> <tbody> <tr id="row-1"> <td class="data-1234">L</td> </tr> <tr id="row-2"> <td class="data-1234">L</td> </tr> </tbody> </table> <table id="table-34"> <tbody> <tr id="row-3"> <td class="data-1234">L</td> </tr> <tr id="row-4"> <td class="data-1234">L</td> </tr> </tbody> </table> </body> </html>