IE7 fixes SELECT element
This is BIG news. I found out today that IE7 has finally fixed the age old problem with the SELECT element. Imagine my joy when I read at IEBlog that they have fixed it, and it is now being rendered by MSHTML.
The SELECT element is a windows control, and does not have a z-index. This usually presents itself as a problem when you try to place a DIV over a SELECT. There are various ways that people have been getting around this annoyance, including hiding the SELECT or using an IFRAME behind the DIV.
The new SELECT element in IE7 will still support Windows themes, so you don’t have to worry about that changing.
There are no plans to implement the DISABLED attribute on the OPTION element however (at least not in this version).
Comments
Comment from Darryl Lyons
Time: June 1, 2006, 5:11 am
Ugh. I will have to look into that one.
Comment from ronan dowd
Time: October 5, 2006, 12:57 am
hi, i’m using the select statement in my HTML page in IE7, i notice that if there are >30 elements in the list then a scrollbar appears next to the dropdown list. i’d like this scrollbar to exist when there are 10 or more, do you know how i could do this , thanks, ronan.
Comment from Darryl Lyons
Time: October 5, 2006, 5:26 am
Ronan, I don’t know what triggers the scrollbar in the dropbox, as I am sure you cannot specify a minimum height for it.
Comment from David
Time: March 12, 2007, 4:23 am
Hi, is there a way to control the “30″ elements size, to make it smaller so that the scroll bar appears at a designated value?
Comment from John Farrar
Time: June 1, 2006, 12:18 am
Yes… they fixed it by breaking something else! Now the dropbox can go outside of the browser window off the edge of the screen. You frequently end up with scrolling content you cannot see to select. Now we will have to account for that building web sites also! Users won’t be able to use forms… are they trying to fix things or kill the web? (I think it’s a work that hasn’t arrived as of yet.)