Style select option arrow - HTML CSS CSS Form

HTML CSS examples for CSS Form:input select

Description

Style select option arrow

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

label:after {<!--from  w  w w  .  ja  v  a 2  s . c om-->
   content:'\25BC';
   display:inline-block;
   box-sizing:border-box;
   color:#000;
   background-color:#fff;
   border:1px solid #999;
   margin-left:-17px;   /* remove the damn :after space */
   pointer-events:none; /* let the click pass trough */
}


      </style> 
 </head> 
 <body> 
  <label> <select> <option value="0">Zero</option> <option value="1">One</option> </select> </label>  
 </body>
</html>

Related Tutorials