1
Arrow under the drop down menu? I’m trying to make a arrow in the 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 also I wanted it only appear on :Hover (when you hover the mouse over the button).
http://jsfiddle.net/Wagner/m0qyayf7/ (example of the arrow balao2)
I’m wanting to put in this layout:
https://coquus.xtechcommerce.com/forno-e-fogao
It follows the style I’m trying to implement: (the class I’m going to implement is really called dropdown)
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>
I don’t understand, it’s like putting together an example showing what’s going wrong?
– bfavaretto
What is going wrong is simple, it is not the arrow that is going wrong but rather that it has to appear only when it is in :Hover. That is when you hover over it. In addition, it is below the :Hover of the other <li> and z-index: does not work.
– Felipe Jorge