HTML CSS examples for CSS Widget:Table Layout
Table Layout to CSS Layout
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> * {<!-- w ww . ja v a 2 s . c om--> box-sizing:border-box; } form input { width:100%; padding:6px; } form { width:81%; overflow:hidden; } form>div { float:left; padding:6px; } .full-row { width:100%; } .half-row { width:51%; } label>span { display:block; } </style> </head> <body> <form> <div class="full-row"> <label> <span>Lorem ip</span> <input type="text"> </label> </div> <div class="half-row"> <label> <span>Lorem ip</span> <input type="text"> </label> </div> <div class="half-row"> <label> <span>Lorem ip</span> <input type="text"> </label> </div> <div class="full-row"> <label> <span>Lorem ip</span> <input type="text"> </label> </div> </form> </body> </html>