Not getting any of the described behavior in IE 9 / Windows 7. Executes same as Chrome (19.0.1084.46 m). Will check on an IE 8 box in the next day; see what appears.
The thing to be aware of is that z-index is not recognized until IE '
has layout'. This could be an issue not present in IE 9, but still prevalent in earlier versions. Make sure to declare the parent as having one of the 'has layout' trigger properties; 'position: %1;' comes to mind.
---------- Post added at 02:42 AM ---------- Previous post was at 02:29 AM ----------
My question is, why is this posted in an HTML5 forum when the URI sports an XHTML doctype? I fail to understand this.
---------- Post added at 02:52 AM ---------- Previous post was at 02:42 AM ----------
Addendum: the Parent could well be any parent in the cascade. Even the body.
Code:
CSS
body { position: relative; }
This might be the fix right here.
---------- Post added at 02:55 AM ---------- Previous post was at 02:52 AM ----------
The key is to declare the position property (the 'has layout' trigger) BEFORE the z-index property.