Reply To: Floating navbar problem

Home Forums Support Floating navbar problem Reply To: Floating navbar problem

Home Forums Support Floating navbar problem Reply To: Floating navbar problem

#107412
Tom
Lead Developer
Lead Developer

Looks good!

It’s not possible to move HTML elements using CSS I’m afraid.

The script I gave you is designed to wait a half second before functioning, this is to because it loops through the function as you resize your browser. Without the pause, the script will run far too much and cause lag.

I personally would use the script – how often do your users resize their browser window up and down like you are when you’re testing? I’m guessing not all that often. They probably just load the website and see it at whatever size their screen is.

As for max-width, I would use this instead:

.nav-float-right .main-navigation {
      display: inline-block;
}