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

Use em instead of px #45

Open
alvarotrigo opened this issue Feb 13, 2015 · 3 comments
Open

Use em instead of px #45

alvarotrigo opened this issue Feb 13, 2015 · 3 comments

Comments

@alvarotrigo
Copy link

It this possible at all?

@horst-n
Copy link

horst-n commented Feb 14, 2015

What about using rem instead of em? This way you also can stick with px here.

If you are not familiar with rem: http://snook.ca/archives/html_and_css/font-size-with-rem

html { font-size: 62.5%; }
body { font-size: 14px; font-size: 1.4rem; } /* =14px */
h1 { font-size: 24px; font-size: 2.4rem; } /* =24px */

@alvarotrigo
Copy link
Author

I couldn't make it work with rems:
http://jsfiddle.net/cvfLL40z/5/

Also, what would minFont and maxFont be then? Also rem? em? px?

@ghost
Copy link

ghost commented Jun 9, 2016

Similar issue?

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

2 participants