Skip to content

Instantly share code, notes, and snippets.

@laustdeleuran
Created February 21, 2012 21:45
Show Gist options
  • Save laustdeleuran/1879184 to your computer and use it in GitHub Desktop.
Save laustdeleuran/1879184 to your computer and use it in GitHub Desktop.
EM inheritance
<style>
body { font-size:62.5%; /* Resetting font size to around 10px to make working with EMs easier */ }
div { font-size:1.5em; }
</style>
<div>This text is 15px font size at the base zoom level, but
<div> this text will be around 22.5px at the base zoom level
(varying between 22px and 23px depending on the browser
you're using.</div>
</div>
@laustdeleuran
Copy link
Author

I know this is a weird, unsemantic example. But it's only an example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment