Streaming live at 10am (PST)

How to change mobile nav bar width from 991px to 1024px

Hi Webflow,

I tried following these instructions on how to change the 991px max-width for mobile menu to 1024px but I am not able to get it working. The menu shows up at 1024px but still displays it in desktop view not the hamburger menu.

Here is the share link to my project:

I have given the mobile nav an id of #mobile-nav
Turned off visibility of the nav for desktop
Set a style attribute in the <head> tag on the home page to:

@media only screen and (max-device-width: 1024px) { #mobile-nav {display: block !important;} }

Any suggestions on what to do next?



i’m not sure if i fully understand. but have you tried this?


Hi Nelson,

The problem is the break point on a iPad is 1024px so my menu still remains as the desktop menu on iPad not the mobile menu. So I am trying to override the default. Does that make sense?

Set navbar to 100% and then set nav container to 100%. Lastly set a max width of 1024px and margin right and left to auto.

You will need to remove the custom code. You should be good.

Hi @AlexManyeki

I did what you suggested. It is still not changing the the desktop nav to mobile nav at 1024px.

Let me know if I did something incorrectly.


Oh sorry, I misunderstood your question. Here you go;

Switch the unit 1250px in the code with 1024px in the answer I have provided.

For quick ref;

@media screen and (max-width: 1024px) {
  .w-nav[data-collapse="medium"] .w-dropdown,
  .w-nav[data-collapse="medium"] .w-dropdown-toggle {
    display: block;
  .w-nav[data-collapse="medium"] .w-dropdown-list {
    position: static;
  .w-nav[data-collapse="medium"] .w-nav-menu {
    display: none;
  .w-nav[data-collapse="medium"] .w-nav-button {
    display: block;

paste in the head section of custom code

Hi @AlexManyeki

Thanks for your help sir. I’m getting closer to getting it working. The desktop nav disappears now at 1024px, but the hamburger menu doesn’t appear until I crush the browser to 991px still.

This topic was automatically closed after 60 days. New replies are no longer allowed.