I'm in the process of creating a digital restaurant menu... I decided to format it as a popup, situated within a fixed container on top of a gray transparent overlay. However, with a large number of dishes, the content exceeds the size of the container. To make it scrollable, I utilized overflow-y:scroll
. Things were going well up to this point.
My next goal was to add a fixed footer at the bottom of the container. This footer would feature a white-to-transparent gradient and include a button to close the menu popup. Unfortunately, my initial approach failed, so I resorted to placing the footer inside another container on top of the popup. While the design now looks great, the background menu is no longer scrollable.
There must be a better solution... How can I position the close button container at the bottom of the menu while keeping the scroll functionality intact?