Let’s start with simple HTML and create the container with a button to click on.
Now, let’s add the style for that button and the container. We’ll keep the position of the container relative.
Let’s add the menu items container inside the main container.
Now, let’s add style for that menu container. We need to keep the position absolute. I have kept the menu items style same as the button but feel free to modify it.
Here’s the full code and demo:
display drop down menu