2020-04-03, 18:26:26
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%;
}
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%;
}