make form with two vertical columns of inputs - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:2 Column

Description

make form with two vertical columns of inputs

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

.right_div_check_boxes {
   width:50%;
   float:right;
}
.left_div_input_boxes {
   width:50%;
   float:left;
}


      </style> 
 </head> <!--  ww  w  .ja  va 2s.  c  om-->
 <body> 
  <div class="left_div_input_boxes"> 
   <input type="text" name="1"> 
   <input type="text" name="1"> 
   <input type="text" name="1"> 
  </div> 
  <div class="right_div_check_boxes"> 
   <input type="checkbox" name="vehicle" value="Bike"> I have a bike 
   <br> 
   <input type="checkbox" name="vehicle" value="Car"> I have a car 
  </div>  
 </body>
</html>

Related Tutorials