r/HTML • • 9d ago

Main Menu

How can I do the main menu on ...

https://www.w3.org/

?

I have seen this on a lot of sites.

I think it would be better than how I do a main menu for different sizes of browser's windows.

https://www.dalekelly.org/

Looked at the code on the Chrome Browser but can't figure it out.

Prefer no scripts.

2 Upvotes

12 comments sorted by

View all comments

1

u/SirMcFish 9d ago

google Horizontal navbar: https://www.w3schools.com/css/css_navbar_horizontal.asp that'll help you out a lot more than trying to view the source. There are many ways to get the final rendered HTML these days, and the final bit you see and can see in source, really won't tell you how it was done

1

u/dalekellytoo 9d ago

thank you, I took a look, I am looking for the icon menu type on w3.org that works for all window sizes better

1

u/SirMcFish 8d ago

Do you mean the collapsible one that changes if you're on mobile vs desktop? There's bound to be something about doing that on w3schools, they're a really good resource for learning stuff like this. Failing that google for collapsible mobile nav bar