I am looking to create dynamic text that adjusts based on the size of its parent container. As the parent container's size changes, I want the text to automatically adjust accordingly.
Specifically, I want the text in a widget to resize when the widget itself increases or decreases in size.
Currently, I am achieving this using @media queries:
@media (min-width: 768px) and (max-width: 1440px) {
.widget-header-title{
background-color:white;
border-bottom:1px solid #F0EEF0 !important;
font-weight:200;
font-size:22px;
color:black;
text-align:center;
}
/*For time widget Only*/
.ticketSummaryTime {
font-weight: bold !important;
font-size: 165px !important;
text-align: center !important;
}
/*For time widget Only*/
.ticketSummary {
font-weight: bold;
font-size: 180px;
text-align: center;
margin-top: 75px;
}
.widget-bottom-status{
font-weight:200;
padding:5px;
margin-top:30px;
font-size:12px;
color:grey;
text-align:center;
border-top:1px solid #F0EEF0 ;
}
}