Is it possible to adapt font size to div width with CSS?
Perhaps not quite what you’re looking for, but something – You can make both the font and the element relative to view width. p { font-size: 5vw; background-color: red; width: 50vw; } <p> I’m a P! </p>