So I’m looking for clues on how to do a dropdown menu that works both in the regular and the mobile version of a site. And I want it just to be in CSS, no javascript. I saw this (https://css-tricks.com/convert-menu-to-dropdown/) but I want there to be a dropdown in the regular site as well. Basically, I’m going to have a series of buttons in the nav and some will have dropdowns and some won’t. Does that make sense?
As you can see from the linked article, there are two menus….it’s just that JS populates one of them with information from the first one. You can’t do that with CSS.
Of course, if you are happy to update the HTML manually then you can do it without the JS.
Up to you.
Author
Posts
Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘CSS’ is closed to new topics and replies.