Skip to content

Instantly share code, notes, and snippets.

@brentvatne
Created September 15, 2011 02:26
Show Gist options
  • Save brentvatne/1218364 to your computer and use it in GitHub Desktop.
Save brentvatne/1218364 to your computer and use it in GitHub Desktop.
cross-browser inline-block sass mixin
//using the technique from: http://colinaarts.com/articles/inline-block-and-you/
@mixin cross-browser-inline-block {
display: inline-block; /* For normal, healthy browsers */
* html & { /* for IE6 */
display: inline;
}
*+html & { /* for IE7 */
display: inline;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment