Change the border of select drop down - HTML CSS CSS Form

HTML CSS examples for CSS Form:input select

Description

Change the border of select drop down

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

select:focus {<!--   ww w . ja  va 2s  .  c  om-->
   border: 2px solid red;
   outline: 2px solid red;
}


      </style> 
 </head> 
 <body> 
  <p>Press Tab</p> 
  <input type="checkbox"> Check 1 
  <br> 
  <input type="checkbox"> Check 2 
  <p> Select <select> <option>Option 1</option> <option>Option 2</option> <option>Option 3</option> <option>Option 4</option> </select> </p> 
  <p> Select <select> <option>Option 1</option> <option>Option 2</option> <option>Option 3</option> <option>Option 4</option> </select> </p> 
  <p> <button>Button 1</button> </p>  
 </body>
</html>

Related Tutorials