Table Layout to CSS Layout - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Layout

Description

Table Layout to CSS Layout

Demo Code

ResultView the demo in separate window

<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>

Related Tutorials