--- title: "Developing a mobile-friendly navigation menu for your website" date: 2023-02-13T11:13:34-05:00 toc: true topics: ["web design", "css", "javascript"] --- I personally am a big fan of navbars as they are a clean way to navigate any website. The classic navbar, that you are likely seeing on this site if you are viewing this on a desktop browser, is extremely simple to make and you can easily find guides to develop these. The one I personally used is [here](https://www.w3schools.com/howto/howto_css_dropdown_navbar.asp). What was not as simple for me was creating a decent navbar for mobile. I had to develop it for a site that I was working on for my church that never concluded development. I copied it over to my personal site and learned a lot in the process of developing it so all was not wasted. It did however end up taking me way more time than it should have and in the hopes of saving some other poor soul some time, I decided to write an article about how I did it on my site. **If you want to check out how it looks like on my site before we get started, just shrink the width of your browser!** ## Fundamental approach I decided that the simplest way to do what I wanted, was to design two completely separate navigation bars. One is used for larger screen widths while the other is used for smaller screen widths. This might not be the most elegant method but it certainly is simple. The `