squaredvision Posted June 29, 2009 Share Posted June 29, 2009 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 Link to comment Share on other sites More sharing options...
Ingolme Posted June 29, 2009 Share Posted June 29, 2009 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 More sharing options...
squaredvision Posted June 29, 2009 Author Share Posted June 29, 2009 Why can't browsers just get up to speed, all browsers need to support CSS already! lol. Link to comment Share on other sites More sharing options...
Jerec Posted June 29, 2009 Share Posted June 29, 2009 It's not "browsers", IE is the one with less than desirable CSS support while the rest are, comparatively, much better. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.