Javascript function added to keep navigation bar sticked to the top when scrolling
This commit is contained in:
@@ -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 */
|
||||
}
|
||||
Reference in New Issue
Block a user