An Interest In:
Web News this Week
- April 3, 2024
- April 2, 2024
- April 1, 2024
- March 31, 2024
- March 30, 2024
- March 29, 2024
- March 28, 2024
November 29, 2019 03:11 pm GMT
Original Link: https://css-tricks.com/simplified-fluid-typography/
Simplified Fluid Typography
Fluid typography is the idea that font-size
(and perhaps other attributes of type, like line-height
) change depending on the screen size (or perhaps container queries if we had them).
The core trickery comes from viewport units. You can literally set type in viewport units (e.g. font-size: 4vw
), but the fluctuations in size are so extreme that's usually undesirable. Let's look at a technique for tamping the extremes, but it basically a one-liner now that CSS is evolving!
The post Simplified Fluid Typography appeared first on CSS-Tricks.
Original Link: https://css-tricks.com/simplified-fluid-typography/
Share this article:
Tweet
View Full Article