Achieve a structure like table without using table - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Row

Description

Achieve a structure like table without using table

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">
label {<!--from ww w.  j av a 2s. com-->
   display:inline-block;
   width:100px;
}
</style> 
 </head> 
 <body> 
  <div class="first"> 
   <div class="line1"> 
    <label>Lor</label> 
    <select> <option value="volvo">Lorem</option> <option value="saab">Lore</option> <option value="mercedes">Lorem ip</option> <option value="audi">Lore</option> </select> 
   </div> 
   <div class="line2"> 
    <label>Lor</label> 
    <select> <option value="volvo">Lorem</option> <option value="saab">Lore</option> <option value="mercedes">Lorem ip</option> <option value="audi">Lore</option> </select> 
   </div> 
   <div> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials