Created
May 10, 2012 06:36
-
-
Save chrsr/2651475 to your computer and use it in GitHub Desktop.
IE7/8 element click stack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<body> | |
<div style="position: relative; width:500px; height:500px;"> | |
<div style="position: relative;"> | |
<img style="position: relative;" src="http://placedog.com/400/300" onclick="alert('image')"> | |
</div> | |
<div style="border: solid 1px green; position: absolute; width:50%; height:100%; left:0; top:0;" onclick="alert('left')">content</div> | |
<div style="border: solid 1px red; position: absolute; width:50%; height:100%; right:0; top:0;" onclick="alert('right ')">content</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Strange IE behaviour... should this be expected?