DEV Community

Cover image for Responsive Text
Beginner Developer
Beginner Developer

Posted on • Originally published at beginners-developer.blogspot.com

Responsive Text

The text size can be set with a "vw" unit, which means the "viewport width".

1vw is equal to one percent of the viewport width, meaning that if you set your font size using vw, it will always relate to the size of the viewport.

responsive text

Output in 1366px

Laptop Screen

Output in 768px

768px

Output in 375px

375px

You can check out my Blog 😀

Top comments (0)