Jump to content

Css Styling For Ie <select> Box


squaredvision
 Share

Recommended Posts

Hey guys,How do I get CSS styling to work in IE?

<style>.dropdown {	border: 1px solid #CCC;	padding: 5px 5px 5px 5px;	font-family: Tahoma, Geneva, sans-serif;	font-size: 12px;}</style></head><body><select name="select1" class="dropdown">		<option name="test">---- test hello ----</option></select></body></html>

This doesn't show up in IE, it still looks like a normal drop down box...Is there a hack for IE so that it can be styled?Thank you,-Michael

Edited by squaredvision
Link to comment
Share on other sites

I don't think so. All browsers have different support for styling form elements. Some are better than others.The only way to have your own custom form elements is to make "fake" ones with Javascript that create hidden inputs with the values you want.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...