.net dropdownlist align text

无人久伴 提交于 2019-12-02 03:42:00

Setting it (text-align="right") on the Select or Option elements in IE6, IE7 & IE8 (even in standards mode) does not appear to work.

Some quick stats after testing.

Browser    |  Result
 Firefox 3     Passes
 Opera 9.5     Passes
 IE 6          Fails
 IE 7          Fails
 IE 8          Fails
 Safari 3      Fails
 Safari 4      Fails
 Chrome        Fails on the Option element, Passes on the Select element

It's sadly true Dedrick...

If right-aligning it in IE6 is really important, maybe you could add blank spaces to fill the left of the elements and make them measure the same. A real pain anyway... -1 reputation points for IE6 in this one!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!