Created
April 11, 2014 07:26
-
-
Save johanneslumpe/10446664 to your computer and use it in GitHub Desktop.
Triggering pseudo-element changes on hover in IE
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
.container { | |
background: #f00; | |
width:50px; | |
height: 50px; | |
} | |
.container:before { | |
content: " "; | |
display: block; | |
background:#fff; | |
height:10px; | |
width:10px; | |
} | |
.container:hover { | |
/* fix the hover state of the :before element for ie */ | |
position:static; | |
} | |
.container:hover:before { | |
background:#0f0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment