M
M
metori2017-07-18 13:47:01
css
metori, 2017-07-18 13:47:01

Why is the block displayed incorrectly in Mozilla?

Hello. I ran into a problem: idontcare.zzz.com.ua
In all browsers it normally shows (in the center), and in Mozilla a block at the top initially appears, but when resizing the window, at least 1 pixel in any direction, it falls into place. What can be funny?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Zakharov, 2017-07-18
@metori

Do not use crutches in the form of a fixed width and height, and then margin.
Do this:

div.section.fp-section {
display: flex;
flex-direction: column;
}
div.section.fp-section>* {
margin: auto;
}

Selectors, of course, insert your own.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question