The community member is trying to make their navbar stick to the top of the page when scrolled on desktop. They have tried setting the "sticky" property in the Position but it is not working. The comments suggest setting the "top" property to 0 to make the navbar stick. One community member confirms this fixes the issue. However, there is no easy way to set a transparent background for the navbar that changes color on scroll, which is another common use case. The community members discuss potential solutions and challenges around sticky positioning and related CSS features.
Hi. I'm trying to get my navbar to be stick when the page is scrolled (Desktop). I've tried enabling its sticky property in Position but is refuses to stick. What else do I need to do please?
We can't, because user might decide to switch back t something else and you get the top value still there, what we can do is add a hint in the description and even an additional warning there when sticky is used without any positinal value