With bootstrap, I encountered a situation where dropdown menus are being clipped by my <div>
with overflow: hidden
. How can I address this issue without incurring high costs? One potential solution might be to change the container of all dropdowns within the project to body
.
.bs-example {
height: 80px;
border: 1px solid black;
overflow: hidden;
}
<div class="bs-example">
<div class="dropdown">
<a id="dLabel" data-target="#" href="http://example.com" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
Dropdown trigger
<span class="caret"></span>
</a>
<ul class="dropdown-menu" aria-labelledby="dLabel">
<li>a</li>
<li>b</li>
<li>c</li>
<li>d</li>
</ul>
</div>
</div>