Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ h1 {

The `clamp()` CSS function uses these values to set the minimum value, preferred value and maximum value. In the above example, this would mean the minimum acceptable font-size would be `1.5rem` and the maximum would be `3rem`.

A font-size of `5vw` is set in-between. The value `5vw` allows the font-size to scale according to the viewport's width, but the size is restricted by the minimum and maximum values we've set. In essence, it'll try to set the font-size to whatever `5w` would be but will not let it go below `1.5rem` or above `3rem`.
A font-size of `5vw` is set in-between. The value `5vw` allows the font-size to scale according to the viewport's width, but the size is restricted by the minimum and maximum values we've set. In essence, it'll try to set the font-size to whatever `5vw` would be but will not let it go below `1.5rem` or above `3rem`.

### Assignment

Expand Down