I am aware you can vw to scale font-size relative to the viewport. What I would like to do is scale font-size relative to the width of its container.
Asked
Active
Viewed 134 times
1 Answers
0
You might be interested in the calc
approach:
font-size: calc(1vw + 1vh + 2vmin);
I hope that's what you want.

Veysel BAYAR
- 261
- 1
- 3
- 4
-
Thanks but that scales it to the viewport. It needs to be responsive to the width of the container which is not directly related to the size of the viewport. – Kani Lana Nov 29 '18 at 03:50