CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   HTML & CSS (http://www.codingforums.com/forumdisplay.php?f=13)
-   -   IE Dropdown Box Font (http://www.codingforums.com/showthread.php?t=282098)

mike1290 11-13-2012 04:09 PM

IE Dropdown Box Font
 
Hello,

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?

Code:

<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>
</select>
</div>

<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>
</select>
</div>


<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>
 </select>
</div>


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

#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 }



All times are GMT +1. The time now is 07:52 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.