I am facing an issue with a dropdown inside a Bootstrap grid. When I click on the dropdown, the height of the row is not increasing as expected.
Can anyone guide me on how to achieve this?
HTML:
<div class="container">
<div class="row">
<div class="col-12">
<select name="cars" id="cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="opel">Opel</option>
<option value="audi">Audi</option>
</select>
</div>
</div>
</div>
CSS:
.row {
border: 1px solid;
height:auto;
}
.col-md-4 .col-sm-8 .col-sm-4{
border: 1px solid;
display: block;
}
Current outcome:
https://i.sstatic.net/in5MA.png
Desired outcome: