HTML CSS examples for CSS Layout:2 Column
make form with two vertical columns of inputs
<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>