HTML CSS examples for CSS Form:input
Input displaying inline
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> label {<!--from w w w.ja v a 2s . com--> display:block; width:100px; float:left } div { clear:both; background-color:Chartreuse; } h3 { font-weight:bold; display:block; clear:both; } </style> </head> <body> <h3>Lorem ipsu</h3> <div> <label>Lore</label> <input type="text"> <label>Lore</label> <input type="text"> <label>Lore</label> <input type="text"> </div> <h3>Lorem ipsu</h3> <div> <label>Lore</label> <input type="text"> </div> <div> <label>Lore</label> <input type="text"> </div> <div> <label>Lore</label> <input type="text"> </div> </body> </html>