Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
position: relative
element to which you add a pseudo-element, pseudo-element and position position: absolute
Absolute positioning of the pseudo-element can help you.
li.active
position: relative
li.active:before
content: ""
width: /*drop width*/
height: /*drop height*/
background-image: url("image url")
position: absolute
top: -n / *drop height + padding*/
left: 50%
transform: translateX(-50%)
The algorithm is like this. It is not clear what you have there in terms of styles. It can be a little tricky for you, you will need the values of absolute positions.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question