Attempting to create a dropdown menu with nested <ul>
tags, each <li>
containing a number generated using CSS Counters.
Sub-menus remain hidden with display:none
until hovered over.
The issue arises when the counters do not increment for elements with display: none
.
Are you familiar with any CSS properties that can address this problem?
Replacing display: none
with visibility: hidden
resolves the counter issue, but concerns about potential drawbacks arise. Are there pitfalls associated with using this method in my menu design?