Avoid textbox Border onfocus paint - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Text

Description

Avoid textbox Border onfocus paint

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <style>
input {<!--from w  ww  . j  a  va2 s  .c om-->
   border:none;
}

input:focus {
   outline:none;
}
</style> 
 </head> 
 <body style="font-family:sans-serif"> 
  <label for="text">Enter some text</label> 
  <br> 
  <input type="text" placeholder="Enter text here">  
 </body>
</html>

Related Tutorials