View Single Post
Old 11-13-2012, 04:09 PM   PM User | #1
mike1290
New to the CF scene

 
Join Date: Nov 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
mike1290 is an unknown quantity at this point
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 }
mike1290 is offline   Reply With Quote