Menu sticky #58
Unanswered
jaroslavhuss
asked this question in
Q&A
Replies: 1 comment
-
Hey @jaroslavhuss, I did a project on Frontend Mentor once and made the menu sticky when the user scrolls up. Just a little CSS and JavaScript was used in the Otherwhise you can set these Tailwind classes to the <header class="sticky top-0 z-30"> Make sure to also set the dark/light background color for the header depending on whether darkmode is enabled or not. Hope this helps! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everybody,
Does anyone know how to make the navigation sticky? I was playing with tailwind classes but approaches like "fixed top-0" or "sticky" either do not work or break the menu.
Highly appreciate any help.
Jarda
Beta Was this translation helpful? Give feedback.
All reactions