HTML CSS examples for CSS Layout:Position
CSS styles for position input in a row with scrollbar
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .aForm {<!--from www . j a va 2 s. c o m--> border:3px solid Chartreuse; background:yellow; color:blue; padding:5px; width:201px; height:51px; overflow:auto; } .aForm label { clear:right; display:block; } .aForm label input[type=checkbox] { float:right; } </style> </head> <body> <form class="aForm"> <label for="checkbox1"> <input id="checkbox1" type="checkbox">Lorem i</label> <label for="checkbox2"> <input id="checkbox2" type="checkbox">Lorem i</label> <label for="checkbox3"> <input id="checkbox3" type="checkbox">Lorem i</label> </form> </body> </html>