DEV Community

Cover image for Responsive Text
Beginner Developer
Beginner Developer

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

6 2

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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay