Arrow below the drop down menu? I'm trying to make a little dropdown menu, so I used the following code:
But the z-index ( other objects are getting on top of it ) in this code does not work and I also wanted it to only appear in : hove r ( when hovering over the button).link (example of the balao2)
I want to put this layout:
The solution has to exist in CSS, I did not find any similar question.
<style>
.dropdown:after {
content: "";
width: 0;
height: 0;
position: absolute;
z-index: 10;
border-left: 10px solid transparent;
border-right: 10px solid transparent;
border-top: 10px solid #000;
bottom: -10px;
left: 20%;
z-index: 15;
}
</style>