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

Usage of rem for vertical rhythm #13

Open
krulik opened this issue Nov 17, 2016 · 0 comments
Open

Usage of rem for vertical rhythm #13

krulik opened this issue Nov 17, 2016 · 0 comments

Comments

@krulik
Copy link

krulik commented Nov 17, 2016

I've noticed the suggestion of the use of rem in the code for vertical rhythm, with SASS calculations based on font-size. I'm wondering whether usage of em for heading margins wouldn't be more useful and simple - effectively the same calculation would happen automatically. In this case the dynamic nature of em size is actually a feature - larger heading will get more space, etc.
So I suggest to revise the rem suggestion, or at least to provide some useful information about the em alternative in this context.
Obviously you know a lot about the subject, so I also wonder maybe there's a thing for me to learn here.
This article (which is linked in your page) provides examples for this use case:
https://zellwk.com/blog/rem-vs-em/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant