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
Share on other sites

  • 2 months later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

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.

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