I'm experience an issue with centering select option elements in IE8. Basically, this works for me in other browsers, but not in IE8.
Up to now I've managed to avoid any browser-specific hacks, but from the research I've done, it seems like this may not be possible with IE8.
Here's sample code to illustrate the problem.
<html>
<head><style>select { text-align: center; }</style></head>
<body>Debugging Centering Issue
<select>
<option>Short option</option>
<option>Very Long Option with lots of horizontal width</option>
</select>
</body>
</html>
Load it up in FF and the combobox is centered. Do the same in IE and it's left-aligned.
I've tried using the jQuery Center Element Plugin, without any success.
Is there a way to do this?
Just to clarify, I'm talking about centering the options (drop-down items) on the select element, not the select element itself.