View Full Version : IE Dropdown Box Font

11-13-2012, 05:09 PM

I'm having some problems with dropdown boxes on my contact form in Internet Explorer.

In IE, after clicking on the drop down arrow and beginning scrolling the options, the drop down field then disappears. I think the cause may be because I have set the dropdown box font as a Google Web Font. If I change the font back to Arial etc the dropdown box works correctly. All other browsers work fine with the Google Web Font.

Is it possible to use an IE specific CSS piece of code to set the font as Arial? If so, can anyone help with how I would assign this to the code below?

<div id="test">
<form action="search-results.php" method="post">
<div class="formheader">Town / City</div>
<div class="formelement"><select name="location" style="width:130px;font-size:11px;padding:1px;font-family:Open Sans;"/>

<option value="">Any</option>
<option value="Town 1">Ammanford</option>
<option value="Town 2">Ammanford</option>
<option value="Town 3">Ammanford</option>

<div class="formheader">Name</div>
<div class="formelement"><select name="name" style="width:103px;font-size:11px;padding:1px;font-family:Open Sans;"/>

<option value="">name</option>
<option value="name1">&pound200</option>
<option value="name2">&pound300</option>

<div class="formheader">age</div>
<div class="formelement"><select name="age" style="width:103px;font-size:11px;margin-top:13px;padding:1px;font-family:Open Sans;"/>

<option value="">Any</option>
<option value="age1">1</option>
<option value="age2">2</option>

<div class="button">
<input type="image" src="/files/button.png" />

#test { width:920px; height:45px; background-color:#FFFFFF }
.button { margin-top:-25px; margin-left:6px; width:190px }
.formheader { font-size: 12px !important; display:inline; margin-left:15px; font-weight:600; color:#000; margin-right:3px; font-family:Open Sans }
.formelement { padding-left:2px; display:inline; font-weight:600; font-size:11px !important; font-color:#000; font-family:Open Sans }

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum