Skip to content

Instantly share code, notes, and snippets.

@ten1seven
Last active December 27, 2015 10:28
Show Gist options
  • Save ten1seven/7310942 to your computer and use it in GitHub Desktop.
Save ten1seven/7310942 to your computer and use it in GitHub Desktop.
Mixin for REM font size with IE8 fallback
@mixin rem($size, $base: 16) {
font-size: ($size + 0rem) / $base;
.lt-ie8 & {
font-size: $size * 1px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment