I am facing an issue with a fixed filter system that is currently positioned at the bottom of the screen. My intention is to animate it popping up later on:
<nav></nav>
<ul class="filter">
<li>filter option</li>
<li>filter option</li>
.....
</ul>
However, when the window is made smaller, the filter system ends up overlapping the navigation bar. I am looking for a way to prevent this overlap and want the filter system to align with the base of the nav bar, allowing users to scroll through the options vertically.
I have attempted using relative positioning to place the filter system below the nav bar so it does not go over the top, but then it is not aligned with the bottom of the window.
My goal is to create a filter system that always stays at the bottom of the screen and allows users to scroll through the list if it extends beyond the viewport height or if the window size is small enough. Is there a CSS-only solution to achieve this?