A
A
Alexey Korolev2021-09-25 14:45:17
css
Alexey Korolev, 2021-09-25 14:45:17

Why is the content ignoring the header with the position:fixed property?

Maybe I don’t understand something, but by applying fixed-top to the header of my design, all subsequent content is published from the top of the page, and not from the header. How to make website content come after the header avoiding margin-top to the height of the header?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2021-09-25
@Rsa97

Because fixed.
Elements with this property drop out of the stream and do not participate in the calculation of the position of other elements.
Use sticky.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question