HTML select dropdown arrow style - HTML CSS CSS Form

HTML CSS examples for CSS Form:input select

Description

HTML select dropdown arrow style

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-style {
   width: 268px;
   line-height: 1;
   border: 0;
   overflow: hidden;
   height: 34px;
   position:relative;
   background:blue;
}
.select-style>select{
   -webkit-appearance: none;<!-- w w  w .j  a va2  s.  co  m-->
   appearance:none;
   -moz-appearance:none;
   width:100%;
   background:none;
   background:transparent;
   border:none;
   outline:none;
   cursor:pointer;
   padding:7px 10px;
}
.select-style>span{
   position:absolute;
   bottom: 0;
   right: 0;
   height: 0;
   width: 0;
   cursor:pointer;
   border-right: 10px solid pink;
   border-bottom: 10px solid pink;
   border-left: 10px solid transparent;
   border-top: 10px solid transparent;
}
select::-ms-expand {
   display: none;
}


      </style> 
 </head> 
 <body> 
  <div class="select-style"> 
   <select> 
      <option>Select Any</option> 
      <option>Option 1</option> 
      <option>Option 2</option> 
   </select> 
   <span></span> 
  </div>  
 </body>
</html>

Related Tutorials