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

Typography: research CSS font-size: clamp() function applicability #161

Open
lkraav opened this issue Jun 30, 2021 · 0 comments
Open

Typography: research CSS font-size: clamp() function applicability #161

lkraav opened this issue Jun 30, 2021 · 0 comments

Comments

@lkraav
Copy link

lkraav commented Jun 30, 2021

Note that using clamp() for font sizes, as in these examples, allows you to set a font-size that grows with the size of the viewport, but doesn't go below a minimum font-size or above a maximum font-size. It has the same effect as the code in Fluid Typography but in one line, and without the use of media queries.

See: https://fluid-typography.netlify.app
Source: Smashing Mag newsletter

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