Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fixed menu at the top
#1
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.
Reply
#2
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%;
}
Reply
#3
(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/
Reply




Users browsing this thread: 1 Guest(s)