A
A
Andrew Foy2021-08-25 11:48:01
css
Andrew Foy, 2021-08-25 11:48:01

Why doesn't the bottom style work in css?

I make a burger for mobile devices. I wanted to position 3 elements (lines), but the style does not work for the last element bottom: 0;. I checked in the code inspector on the site, stupidly does not work. What's wrong? Tell me, maybe something is wrong in the parent.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
andand44, 2021-08-25
@Arda4ek

You need to cancel the rule with top. top: auto;

.menu-burger-line_third {
    bottom: 0;
    top: auto;
}

I
imko, 2021-08-25
@imko

Remove top for her, due to the fact that both top and bottom are indicated, she is centered

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question