text is seen through fixed navbar when its position is relative. why is this happening? and how can it be solved?
link to example
When you use position: fixed
the element is taken out of the normal flow (read on stacking context),
To fix it add z-index: 1
to elements with position: fixed
.
2 Likes
thanks! its working!