Chrisj Posted December 7, 2014 Share Posted December 7, 2014 How can I style this drop-down list/box in IE, so it looks the same as how I have it in Chrome? (see attached images) Here's the current code: <form method="get" action="../search.php" name="myForm" /> <select size="1" name="type" class="dropdown_box" /> <option value="1">CHANNEL 1</option> <option value="2">CHANNEL 2</option> <option value="any string here">ALL CHANNELS</option> </select> <input autocomplete="off" id="keyword" name="keyword" value="Enter text" onfocus="if (this.value=='Enter text') {this.value=''; this.style.color='#696969';}" onclick="clickclear(this, 'Search [var.site_name]')" onblur="clickrecall(this,'Search [var.site_name]')" value="" /> <input type="submit" value="VIEW"/> </form> /*input,select.dropdown_box {*/ input.common-input, select.dropdown_box { width:100px; height: 40px; color:#cccccc; border:1px solid #cccccc; background: #ffffff; } input:focus,select:focus{background:#ffffff} Any help will be appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/292937-how-to-style-this-drop-down-box/ Share on other sites More sharing options...
WebOutGateway Posted December 10, 2014 Share Posted December 10, 2014 Hi, Chrisj! I think it's a matter of browser compatibility so you cannot style the dropdown in IE as same as with Chrome. In other words, it is the default view. What you can do is modify the entire dropdown box. I hope this helps. Thank you. Quote Link to comment https://forums.phpfreaks.com/topic/292937-how-to-style-this-drop-down-box/#findComment-1499151 Share on other sites More sharing options...
jeffreyappel Posted February 27, 2015 Share Posted February 27, 2015 I can see you didn't use webkit and need more styling on 'select'. cheer Quote Link to comment https://forums.phpfreaks.com/topic/292937-how-to-style-this-drop-down-box/#findComment-1506967 Share on other sites More sharing options...
BuildMyWeb Posted February 28, 2015 Share Posted February 28, 2015 you cannot style some aspects of a drop-down directly. but there are workarounds that work quite well: http://bavotasan.com/2011/style-select-box-using-only-css/ Quote Link to comment https://forums.phpfreaks.com/topic/292937-how-to-style-this-drop-down-box/#findComment-1507077 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.