HTML CSS examples for CSS Widget:Table Layout
HTML/CSS table display layout
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .demo {<!--from ww w . j av a 2 s .c o m--> display:table-cell; box-sizing:border-box; margin:0; vertical-align:middle; } #one { width:31%; background:lightblue; } #two { text-align:center; width:31%; background:pink; } #three { width:41%; background:green; } #text { text-align:center; } </style> </head> <body> <div id="wrapper"> <div id="one" class="demo"> Lorem ipsum dolor sit amet, co </div> <div id="two" class="demo"> Lorem ipsum dolor sit a </div> <div id="three" class="demo"> <p id="text">Lorem ipsum dolor sit a<br>Lorem ipsum dolor sit amet, consectetur adipiscing elit. </p> </div> </div> </body> </html>