I'm trying to make a dropdown menu using nested <ul>
, every <li>
displaying a number generated with CSS Counters.
Sub-menus are hidden with display:none
when not hovered.
My problem is that counters are not incremented when an element has display
set to none
.
Do you know a CSS property to prevent this?
If I replace display: none
by visibility: hidden
, it's working but I'm not sure if it's nice to use this for my menu, are there any traps?