N
N
narem2018-02-23 17:18:51
css
narem, 2018-02-23 17:18:51

How to remove push from :before?

It is made in such a way that a droplet appears above the buttons of those pages where I am now and it turns out that the drop seems to push out the inscription. Can this be avoided somehow?
5a902282179b4085143628.png5a902288334f4774734270.png

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
dmnmkua, 2018-02-23
@dmnmkua

display:flex;
align-item: flex-end;

Q
qwert87, 2018-02-23
@qwert87

Take a look here, it might help!

D
Dymok, 2018-02-23
@UnluckySerivelha

position: relativeelement to which you add a pseudo-element, pseudo-element and position position: absolute

K
koanvl, 2018-02-23
@koanvl

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 question

Ask a Question

731 491 924 answers to any question