Skip to content

Instantly share code, notes, and snippets.

@JohnRiv
Last active August 29, 2015 14:01
Show Gist options
  • Save JohnRiv/d3a54f766421702aa5fd to your computer and use it in GitHub Desktop.
Save JohnRiv/d3a54f766421702aa5fd to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.7)
// Compass (v1.0.0.alpha.18)
// ----
// Inline-Block IE
/* Using a mixin */
@mixin inline-block {
display: inline-block;
*zoom: 1;
*display: inline;
}
.box {
@include inline-block;
}
.box2 {
@include inline-block;
}
// Inline-Block IE
/* Using a placeholder */
%inline-block {
display: inline-block;
*zoom: 1;
*display: inline;
}
.box {
@extend %inline-block;
}
.box2 {
@extend %inline-block;
}
/* Using a mixin */
.box {
display: inline-block;
*zoom: 1;
*display: inline;
}
.box2 {
display: inline-block;
*zoom: 1;
*display: inline;
}
/* Using a placeholder */
.box, .box2 {
display: inline-block;
*zoom: 1;
*display: inline;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment