HTML CSS examples for CSS Form:Form
CSS Horizontal alignment with form fields
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .small {<!--from ww w. j ava 2s . co m--> border:2px solid Chartreuse; float:left; height:21px; width:51px; margin-right:21px; } .big { border:2px solid yellow; float:left; clear:left; height:201px; width:195px; margin-top:21px; } </style> </head> <body> <div> <div class="small"></div> <div class="small"></div> <div class="small"></div> <div class="big"></div> </div> </body> </html>