HTML CSS examples for CSS Widget:Table Cell
Div side by side like table cell
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .parent {<!-- ww w . j a v a 2s . c o m--> width:100%; } .parent>.first { width:51%; float:left; background-color:Chartreuse; } .parent>.last { width:51%; float:right; background-color:yellow; text-align:left } </style> </head> <body> <div class="parent"> <div class="first"> Lorem </div> <div class="last"> Lorem i </div> </div> </body> </html>