Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • Why not use one of the classes for hiding elements on different screen sizes?
    – kmoser
    Commented May 25, 2022 at 1:24
  • @kmoser Thanks for the nice workaround. That's what I'm doing currently - it works, but those nav-items are completely hidden. I was hoping there were some nice UX to collapse some items, but show all when the hamburger menu is toggled.
    – lonix
    Commented May 25, 2022 at 1:27
  • Please see How to Ask. You need to show your use case in code.
    – isherwood
    Commented May 25, 2022 at 20:54
  • Alright thanks dude. I've been using it since version minus 1. I'll wait for another answer. Besides, I don't think this use case is possible, but I hope I'm wrong.
    – lonix
    Commented May 26, 2022 at 2:12
  • If the nav items are descendants of the collapsed (hidden) element, you may be able to selectively hide/show some of them based on whether their ancestor is hidden or not. See Is there a selector to exclude display: none elements?
    – kmoser
    Commented May 26, 2022 at 5:03