Set border-color for input text - HTML CSS CSS Form

HTML CSS examples for CSS Form:input

Description

Set border-color for input text

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

.my_border {
   width:100%;
   padding: 20px;
   outline: none;
   border-width: 0 0 1px 50px;
   border-color: red;
}


      </style> 
 </head> <!--from www . j  av  a 2 s.co  m-->
 <body> 
  <input class="my_border" type="text">  
 </body>
</html>

Related Tutorials