Is there a way to make a button automatically adjust its width to the parent div it is nested in?
.
Below is the code (html structure) for reference:
<div class="drp">
<button class="drp-btn" id="i-drp-btn">m/s</button>
<div id="i-speed-drp" class="drp-content">
<button class="drp-btn-elem" value="m/s">m/s</button>
<button class="drp-btn-elem" value="km/h">km/h</button>
</div>
</div>