Skip to content

Instantly share code, notes, and snippets.

@ch-gilbert
Last active December 20, 2015 15:19
Show Gist options
  • Save ch-gilbert/6153056 to your computer and use it in GitHub Desktop.
Save ch-gilbert/6153056 to your computer and use it in GitHub Desktop.
IE hacks
/* 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