Skip to content

Instantly share code, notes, and snippets.

@daveespionage
Created September 20, 2012 18:07
Show Gist options
  • Save daveespionage/3757432 to your computer and use it in GitHub Desktop.
Save daveespionage/3757432 to your computer and use it in GitHub Desktop.
px to em in sass
// from http://forrst.com/posts/SASS_px_to_em_and_em_to_px-JAd
// Convert px to em
@function pxtoem($target, $context){
@return ($target/$context)+0em;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment