Created
July 31, 2020 02:19
-
-
Save colabottles/e0c81eecf9445df6a0c5a603ae9bafcd to your computer and use it in GitHub Desktop.
CSS Clamp example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
font-size: clamp ( | |
1.125rem, /* Min */ | |
1rem + 2vw, /* Scaler */ | |
1.5rem /* Max */ | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment