25 CSS Hacks Every Developer Should Know

Responsive Text with `vw`

Problem: ensuring text scales proportionally with the viewport.

Solution: use `vw` units.

h1 {
  font-size: 5vw;
}