I have a dropdown menu enclosed in a div with a vibrant yellow background. Take a look at the code on Plunker here.
Upon clicking the dropdown button, the list expands and the container's height increases as well. The background color of the dropdown items is painted in yellow.
To style the list items, I have included a z-index
property like so:
<div class="drp-down-cnt" style="z-index:1000;">
This change results in the following appearance:
https://i.sstatic.net/LtECC.png
My desired outcome looks more like this:
https://i.sstatic.net/3558z.png
In summary, only the background of the drop-down button should be yellow, while the background of the dropdown list items should be white or gray.