HTML CSS examples for CSS Widget:UL
Replacing default icon of select tag
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .select {<!-- w ww. j av a 2s .co m--> border:2px solid Chartreuse; overflow:hidden; height:41px; width:241px; position:relative; display:block; } select { height:41px; padding:6px; border:0; font-size:17px; width:241px; -webkit-appearance:none; -moz-appearance:none; appearance:none; z-index:2; position:relative; background:transparent; } .select:after { content:"\e0e6"; font-family:segoe mdl3 assets; color:yellow; padding:13px 9px; position:absolute; right:0; top:0; background:red; text-align:center; width:11%; height:100%; box-sizing:border-box; } </style> </head> <body> <link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet"> <label class="select"> <select name="email" id="email"> <option>Lorem</option> <option>Lorem</option> <option>Lorem</option> <option>Lorem</option> <option>Lorem</option> <option>Lorem</option> </select> </label> </body> </html>