2
I’m studying bootstrap. Precisely, a menu. and I was confused because it is not repeating the dropdown again. However only in 1 "LI" specific.
Thank you!
CSS
HTML:
<div id="sidebar-nav" class="sidebar">
<div class="sidebar-scroll">
<nav>
<ul class="nav">
<li><a href="index.html" class="active"><i class="lnr lnr-home"></i> <span>Página Inicial</span></a></li>
<!--FUNCIONA PERFEITAMENTE ABAIXO -->
<li>
<a href="#subPages" data-toggle="collapse" class="collapsed"><i class="lnr lnr-file-empty"></i> <span>Cadastrar</span> <i class="icon-submenu lnr lnr-chevron-left"></i></a>
<div id="subPages" class="collapse">
<ul class="nav">
<li><a href="page-profile.html" class="">Cliente</a></li>
<li><a href="page-lockscreen.html" class="">Corretor</a></li>
<li><a href="page-login.html" class="">Moto</a></li>
</ul>
</div>
</li>
<li><a href="charts.html" class=""><i class="lnr lnr-chart-bars"></i> <span>Charts</span></a></li>
<li><a href="panels.html" class=""><i class="lnr lnr-cog"></i> <span>Panels</span></a></li>
<li><a href="notifications.html" class=""><i class="lnr lnr-alarm"></i> <span>Notifications</span></a></li>
<!--QUANDO CLICA ESTA ABRINDO O PRIMEIRO DROPDOWN E NAO ESTE! -->
<li>
<a href="#subPages" data-toggle="collapse" class="collapsed"><i class="lnr lnr-file-empty"></i> <span>Cadastrar</span> <i class="icon-submenu lnr lnr-chevron-left"></i></a>
<div id="subPages" class="collapse">
<ul class="nav">
<li><a href="page-profile.html" class="">Cliente</a></li>
<li><a href="page-lockscreen.html" class="">Corretor</a></li>
<li><a href="page-login.html" class="">Moto</a></li>
</ul>
</div>
</li>
<li><a href="tables.html" class=""><i class="lnr lnr-dice"></i> <span>Tables</span></a></li>
<li><a href="typography.html" class=""><i class="lnr lnr-text-format"></i> <span>Typography</span></a></li>
<li><a href="icons.html" class=""><i class="lnr lnr-linearicons"></i> <span>Icons</span></a></li>
</ul>
</nav>
</div>
</div>
Good evening further specify your question please.
– Dudut
The code below the comment serves to create a drop down. In fact the first time the code below the comment works. but if I repeat it opens the top and not the bottom(drop down)
– Joao Torres
You’re wearing the same
id
in both.– Sam
It’s not a conflict with the Ids?
– Dudut