Align input element in HTML - HTML CSS CSS Form

HTML CSS examples for CSS Form:input

Description

Align input element in HTML

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
input {<!--from  w  ww  . j a  v  a 2  s .co  m-->
   padding:6px;
   font-weight:bold;
   font-size:2em;
   color:Chartreuse;
   background:yellow;
   border:2px dotted blue;
}

.hints
 {
   width:81px;
   float:left;
}
</style> 
 </head> 
 <body> 
  <div> 
   <div> 
    <div class="hints">
      Lorem ips 
    </div> 
   </div> 
   <input type="text" name="Usuari" size="20" maxlength="60"> 
  </div> 
  <div> 
   <div class="hints">
     Lorem i 
   </div> 
   <input type="text" name="Clau" size="20" maxlength="20"> 
  </div> 
  <input type="submit" name="submit" value="ACC?S">  
 </body>
</html>

Related Tutorials