Jump to content

How to style this drop-down box


Chrisj

Recommended Posts

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.

post-20454-0-73008300-1417913886_thumb.png

post-20454-0-14285800-1417913893_thumb.png

Link to comment
https://forums.phpfreaks.com/topic/292937-how-to-style-this-drop-down-box/
Share on other sites

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.

  • 2 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.