Jump to content
Sign in to follow this  
Chrisj

How to style this drop-down box

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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • 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.