GetSimple Support Forum

Full Version: Fixed menu at the top
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Maybe a stupid question from a newbie ...:

how can I make a menu that stays always on top of the page when this page is scrolling ? any theme or plugin available for that ?

thanks in advance,
Domi.
No need for plugin, you can do this with simple css

To create a fixed top menu, use position:fixed and top:0.

Note that the fixed menu will overlay your other content,
so, add a margin-top (to the content) that is equal or larger
than the height of your menu.

Starting css example:

.navbar {
  overflow: hidden;
  background-color: #333;
  position: fixed;
  top: 0;
  width: 100%;
}
(2020-04-03, 17:52:03)Domi Wrote: [ -> ]Maybe a stupid question from a newbie ...:

how can I make a menu that stays always on top of the page when this page is scrolling ? any theme or plugin available for that ?

thanks in advance,
Domi.

This theme is one of several with menus like that - GS Theory 
In use for this site:

http://www.parsonagefarm.uk/