I have a very simple dropdown menu consisting of images (two rows, three columns each containing an image).
I want to make the dropdown itself larger, while containing all the images within it when the window is resized. When I set a width
or height
, the images escape the dropdown window when I make the window smaller.
Is there a good way to adjust the dropdown size, to make it bigger, and add some nice padding to the images within it while keeping responsiveness?
<div class="btn-group">
<button type="button" id="menuIcon" dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dropdown</button>
<div class="dropdown-menu dropdown-menu-right">
<div class="row">
<div class="col-md-4">
<img src="img1.svg" style="width: 60px;"> <br>
<strong>Name</strong>
</div>
<div class="col-md-4">
<img src="img2svg" style="width: 60px;"> <br>
<strong>Name</strong>
</div>
<div class="col-md-4">
<img src="img3.svg" style="width: 60px;"> <br>
<strong>Name</strong>
</div>
</div>
<div class="row">
<div class="col-md-4">
<img src="img4.svg" style="width: 60px;"> <br>
<strong>Name</strong>
</div>
<div class="col-md-4">
<img src="img5.svg" style="width: 60px;"> <br>
<strong>Name</strong>
</div>
<div class="col-md-4">
<img src="img6.svg" style="width: 60px;"> <br>
<strong>Name</strong>
</div>
</div>
</div> <!-- Dropdown-->
</div> <!-- Btn group -->