Looking at the images below, I have a menu that needs new items added to it while maintaining the position of the lower-left corner. Essentially, each time an entry is added, the menu should expand upwards from "the upper-left corner" while keeping the lower-left corner fixed. The goal is to ensure that regardless of how many entries are added, the menu expands to fit them all without covering up the two buttons shown in image_1. Please review the CSS code provided below and advise on any modifications needed to meet these requirements.
CSS:
#select-site-layers-overlay{
position: absolute;
top:800px;
right: 0px;
padding: 15px;
display: block;
width: 305px;
height: 200;
border: 1px solid white;
border-radius: .15rem;
background-color: white;
z-index: 2;
cursor: pointer;
}
img_1:
https://i.stack.imgur.com/EufQA.png
img_2: