I'm using Bootstrap to make a bar at the top of the page, and I'm having a problem:
What I need is to open the dropdown, have a list of options, and an image next to it that always has the same size as the list below.
I achieved this by setting a fixed height and width in the image, however the list can grow and I can not change it in the hand.
One solution that would work is to put a div involving the list and the image, and set the image size to 100%, however doing so, the dropdown is no longer activated (I think I end up breaking the structure that the bootstrap use to enable the dropdown).
How can I reach this solution?
Thank you!
<divid="navbar" class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav top-elements">
<li id="dropdown-produtos" class="dropdown">
<a href="#" class="dropdown-toggle text-uppercase top-text" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Nossos Produtos<span class="caret top-caret"></span></a>
<!-- a div ia aqui --> <ul class="dropdown-menu dropdown-menu-produtos">
<li class="dropdown-item-active">
<a href="#" class="dropdown-item-description">texto1</a>
<ul class="dropdown-menu img-dropdown">
<img src="assets/img.png">
</ul>
</li>
<li class="dropdown-item">
<a href="#" class="dropdown-item-description">texto2</a>
</li>
<li class="dropdown-item"><a href="#" class="dropdown-item-description">texto3</a></li>
<li class="dropdown-item"><a href="#" class="dropdown-item-description">texto4</a></li>
<li class="dropdown-item"><a href="#" class="dropdown-item-description">texto5</a></li>
</ul>
</li>
</ul>
</div>