Set glow around input with border and color - HTML CSS CSS Form

HTML CSS examples for CSS Form:input

Description

Set glow around input with border and color

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">

body {<!--from   ww w .j  av  a2 s . com-->
   margin: 10px;
}
.text {
   border: 1px solid #666;
   border-radius: 5px;
   padding: 3px;
}
.text:focus {
   border: 1px solid #07c;
   box-shadow: 0 0 5px #07c;
   outline: none;
}


      </style> 
 </head> 
 <body> 
  <input type="text" class="text" value="" placeholder="Username">  
 </body>
</html>

Related Tutorials