I have two divs, and one of has data coming from api, and its width changes depending on how much text/numbers are returned from api.
Im trying to make another div align itself according to what the first div's width is.
This is the html structure
<div>
<h5 class="test">First Text</h5>
</div>
<div>
<h5 class="test">First Text</h5>
</div>
<div>
<h5 class="test">${API_DATA}</h5>
</div>
Each div has a styling of:
display: grid;
grid-template-columns: 1fr auto;
with two columns as this is the structure
how can i make it have the same width as the last div no matter how long the data is?