position:fixed; scroll-y

I have a mobile header with position: fixed; style. It has a lot of menu items that make the last items hidden/cut-off from the screen. I want to be able to scrolldown so I can see those hidden items. overflow-y: scroll; doesn't help. Do you have a solution for this problem?
7 Replies
clevermissfox
clevermissfox10mo ago
Can you please put your code into a live sandbox? Like at https://codepen.io
CodePen
An online code editor, learning environment, and community for front-end web development using HTML, CSS and JavaScript code snippets, projects, and web applications.
Daryl M
Daryl MOP10mo ago
@clevermissfox sure, here it is: https://codepen.io/malibiran/pen/wvZKQrj Please resize your browser size. Thanks!
Daryl M
Daryl MOP10mo ago
For this demo, I just added a lot of menu items
No description
MarkBoots
MarkBoots10mo ago
you'll need to set a max-height so there is something to scroll
Daryl M
Daryl MOP10mo ago
header{max-height: 100svh;} didn't help
MarkBoots
MarkBoots10mo ago
you still need to add overflow-y: auto
Daryl M
Daryl MOP10mo ago
Thank you so much, @MarkBoots!
Want results from more Discord servers?
Add your server