HTML CSS examples for CSS Widget:Table Layout
Vertically align CSS tables
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .table {<!-- ww w . jav a2 s.c om--> display:table; border:2px solid Chartreuse; } .row { display:table-row; border:2px solid yellow; } .cell { display:table-cell; border:2px solid blue; } </style> </head> <body> <div id="table" style=" width=100%; margin: auto;"> <div class="row"> <span class="cell" style="padding: 10px;"> <a href="/view/2">Lorem ipsum</a> </span> <span class="cell" style="padding: 10px;">Lorem ipsum</span> </div> <div class="row"> <span class="cell" style="padding: 10px;"> <a href="/view/1">Lorem ipsum dolor s</a> </span> <span class="cell" style="padding: 10px;">Lorem </span> </div> </div> </body> </html>