I have this navbar
on the left side of my screen
<div class="main-menu">
<ul>
<li>
<a href="listCadastro.php" onclick="">
<span class="menu-icon">
<i class="fa fa-file-text fa-lg"></i>
</span>
<span class="text">
Cadastros
</span>
<span class="menu-hover"></span>
</a>
</li>
<li>
<a href="listCadastro.php" onclick="">
<span class="menu-icon">
<i class="fa fa-file-text fa-lg"></i>
</span>
<span class="text">
Informações
</span>
<span class="menu-hover"></span>
</a>
</li>
<li>
<a href="listCadastro.php" onclick="">
<span class="menu-icon">
<i class="fa fa-file-text fa-lg"></i>
</span>
<span class="text">
Cartas
</span>
<span class="menu-hover"></span>
</a>
</li>
<li>
<a href="listCadastro.php" onclick="">
<span class="menu-icon">
<i class="fa fa-file-text fa-lg"></i>
</span>
<span class="text">
Relatórios
</span>
<span class="menu-hover"></span>
</a>
</li>
</ul>
</div>
I would like to add submenus
so that when I clicked on records for example, this submenus
would appear underneath the register button, while the other buttons would go down.
Is there any way to do it?