You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a small menu based on tailwindcss. It works fine, but there's one thing: If this menu is shown on mobile devices, the user scrolls the content of the page that is "behind" the menu. So some menu items can not be shown.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I created a small menu based on tailwindcss. It works fine, but there's one thing: If this menu is shown on mobile devices, the user scrolls the content of the page that is "behind" the menu. So some menu items can not be shown.
I created a codepen to demonstrate this:
https://codepen.io/spqrinc/pen/RwPBBKq
This is how I defined the fixed menu position:
I also created a gif to show what I mean - just click the image to start the gif's animation:
I am not sure, why this is happening. I guess I messed something up with the fixed position. So I am very thankful for your help.
Beta Was this translation helpful? Give feedback.
All reactions