My div is set to 70% width and I have a specific goal in mind:
- To fill that div with text
- To adjust the font size so that it takes up the entire width of the div
https://i.stack.imgur.com/goVuj.png
Would it be possible to achieve this using only CSS? Below is the code I have tried so far:
.parent {
width:70%;
height:auto;
min-height:100px;
background:red;
font-size:10vw;
}
I need assistance in dynamically adjusting the font size within the parent class
<hr>
<div class="parent">
This Text
</div>
Important Note: The div's size adapts responsively. Thank you for your help!