Last active
December 20, 2015 15:19
-
-
Save ch-gilbert/6153056 to your computer and use it in GitHub Desktop.
IE hacks
This file contains hidden or 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
/* IE Hacks*/ | |
/** | |
* slideDown on element with position set to relative, the element will display first and then it will disappear. | |
* @for IE7 | |
*/ | |
.container { | |
position: relative; | |
overflow: hidden; /* hack: BFC or hasLayout issue */ | |
} | |
/** | |
* make ie support display: inline-block; | |
* @for IE7 | |
*/ | |
.inline-block { | |
display: inline-block; | |
/* hacks */ | |
zoom: 1; | |
*display: inline; | |
} | |
/** | |
* overflow: hidden; not work well in ie 7. | |
* @for IE7 | |
*/ | |
.hidden { | |
overflow: hidden; | |
position: relative; /* fix IE7 overflow: hidden issue*/ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment