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>
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>