Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update rem unit #432

Merged
merged 2 commits into from
Oct 23, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions posts/rem.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
feature: rem unit
status: use
tags: fallback gtie8
tags: gtie8
kind: css

The css `rem` unit is calculated relative to font size, but based on the root element (usually `<html>`) instead of the element's parent. For a detailed comparison of `em`, `px`, and `rem`, see [this post
by Johnathan Snook](http://snook.ca/archives/html_and_css/font-size-with-rem).

`rem` has wide browser support & is recommended for use with an easily-calculated pixel fallback.
Internet Explorer 10 and 9 have quirks. For more details see [caniuse](https://caniuse.com/#feat=rem).