R
R
Rulon Oboevv2017-09-22 21:25:45
css
Rulon Oboevv, 2017-09-22 21:25:45

Footer doesn't bounce down when objects appear on top of it,?

I'm writing on the boot, I attached the footer to the bottom, everything is ok.
But when objects appear on top, it does not go below, objects go on top of it.
12bc61f370764276a882258bbeefecbb.png\
What's wrong?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
denis_lunochkin, 2017-09-22
@denis_lunochkin

Hello. Your footer is set to absolute position, what kind of shift are we talking about?) Change it to relative.

A
A person from Kazakhstan, 2017-09-22
@LenovoId

For the element above the basement, give a padding bottom equal to the height of the basement

I
Ivan, 2017-09-22
@Za0r

in front of the footer you create an empty div with an arbitrary class, and in the styles you write

.empty {
    height: 115px;
}
.footer {
    height: 115px;
    margin-top: -115px;
    position: relative;
}

L
Lumore, 2017-09-23
@Lumore

Use flex: Stackoverflow

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question