HTML CSS examples for CSS Form:input
Center align the input descriptions and inputs
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .smallrow {<!--from w w w .j a v a 2 s . c o m--> width:99%; margin:11px; position:relative; box-shadow:11px 11px 6px Chartreuse; } .col-6 { width:51%; float:left; } .clear { clear:left; } </style> </head> <body> <div class="smallrow innerbody"> <div class="col-12"> <h1>Lorem ipsum dolor sit a</h1> </div> <div> <div class="col-6" style="text-align: right;"> <p>Lorem ipsum dolor sit amet, cons</p> <p>Lorem ipsum dolor sit amet, </p> <p>Lorem ip</p> <p>Lorem </p> </div> <div class="col-6" style="text-align: left;"> <p> <input type="email" name="email"> </p> <p> <input type="password" name="password"> </p> </div> <div class="clear"></div> </div> </div> </body> </html>