Monday, 12 May 2014

Working Demo 



Code in CSS ( write this code in your css file)


//this class set arrow on select box


.styled-select.slate { -moz-user-select: none; background:url("http://www.shopcrossgates.com/mobile/images/down_arrow.png") no-repeat scroll 99% center #FFFFFF; border-style: none; 
 border-width: 1px; 
 box-shadow: 0 1px 3px rgba(0, 0, 0, 0.31); 
 font-size: 10px; 
 height: 33px; 
 overflow: hidden; 
 text-align: center; 
 width: 70%; } 

// this class set background gradient 

.design_select_bg { 
 background: linear-gradient(to top, rgba(0, 0, 0, 0.04), rgba(255, 255, 255, 0.04)) no-repeat scroll right center rgba(0, 0, 0, 0); 
 box-shadow: 0 1px 3px rgba(0, 0, 0, 0.31); 
 display: block; 
 height: 33px; } 


//this class set select box property

.styled-select select { -moz-appearance: none; background: none repeat scroll 0 0 rgba(0, 0, 0, 0); border: 0 none; color: #757575; font-size: 12px; outline: none; overflow: hidden; padding-left: 2px; padding-top: 7px; text-indent: 0.01px; text-overflow: ""; width: 103.5%; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; }




Code in HTML (Write this code in html)



<div style="margin-bottom: 0px;" title="Schriftart" class="styled-select slate width_183px file_button"> 


<span class="design_select_bg">

  <select style="height: 33px;-webkit-padding-before: 0px;" onchange="setSimulatorValue(this.name, this.value);" class="font_dropdown_elips" id="font_family" name="font_family">
    <option value="Arial">Arial</option>
    <option value="Helvetica">Helvetica</option>
    <option value="sans-serif">sans-serif</option>
    <option value="Times New Roman">Times New Roman</option>
  </select>

  </span> 

</div>