Input text field with bottom border - HTML CSS CSS Property

HTML CSS examples for CSS Property:border-bottom

Description

Input text field with bottom border

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <title>Safari isn't working correctly..</title> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">

input[type=text] {
   width: 100%;
   padding: 12px 20px;
   margin: 8px 0;
   box-sizing: border-box;
   border: 2px solid grey;
   border-width:0px 0px 2px 0px;
}
input[type=text]:focus {
   outline:none;
   border-image: linear-gradient(to right, #DEAFDB 0%, #EFB9AD 100%) 1;
   border-width:0px 0px 2px 0px;
}


      </style> 
 </head> <!--from  www.  j  a v a2s.c  o  m-->
 <body> 
  <form> 
   <label for="test">test</label> 
   <input type="text" id="test" name="test"> 
  </form>  
 </body>
</html>

Related Tutorials