How to make a dropdown menu on an Entity Framework template

I'm trying to create a dropdown menu for this website I'm working on. It should've been simple coding since it is on Html and CSS, yet what I've done doesn't work. It simply doesn't show when I'm hovering over the text that is supposed to activate the dropdown menu.

HTML

<div class="dropdown-menu" id=" el_pepe">
  <ul class="nav navbar-nav">
    <li> @Html.ActionLink("maderas", "Productos", "tblProductos") </li>
  </ul>
</div>

CSS

#el_pepe {
    visibility: hidden;
    float: left;
    text-decoration: none;
    box-sizing: border-box;
}

#el_pepe *:hover {
    visibility: visible;
}


Read more here: https://stackoverflow.com/questions/68457446/how-to-make-a-dropdown-menu-on-an-entity-framework-template

Content Attribution

This content was originally published by Eduardo Rosso at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: