Make navbar absolute positioned, so it scrolls
This commit is contained in:
parent
1e973c31b2
commit
46eed1c223
|
@ -26,7 +26,7 @@ nav, #menu {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
nav {
|
nav {
|
||||||
position: fixed;
|
position: absolute;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
@ -74,7 +74,7 @@ nav li.active, nav li:hover {
|
||||||
|
|
||||||
@media(max-width: 800px){
|
@media(max-width: 800px){
|
||||||
nav #menu, nav #menu li.active, nav #menu_toggle, nav #menu:target li.active a, nav #login {
|
nav #menu, nav #menu li.active, nav #menu_toggle, nav #menu:target li.active a, nav #login {
|
||||||
position: fixed;
|
position: absolute;
|
||||||
}
|
}
|
||||||
|
|
||||||
nav {
|
nav {
|
||||||
|
|
Reference in New Issue