Javascript function added to keep navigation bar sticked to the top when scrolling

This commit is contained in:
Lucas Patenaude
2024-04-07 04:59:09 -06:00
parent 2ad2b6706e
commit db748a38f9
3 changed files with 47 additions and 0 deletions

View File

@@ -2,4 +2,11 @@
background-color: hsl(0, 98%, 40%);
box-shadow: 0px 3px 4px rgba(0, 0, 0, 0.4);
}
.sticky {
position: fixed;
top: 0;
width: 100%;
z-index: 1000; /* Adjust as needed */
}