K
K
Konstantin-P922018-05-15 08:07:41
css
Konstantin-P92, 2018-05-15 08:07:41

The footer is pinned in the background. How to do?

Hello.
Please tell me how to make a footer like on this site? https://vet.bit-ecommerce.ru/appointments/
The content seems to reveal the pinned footer.
I don't know the name of this effect, but it looks interesting. How to do this?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Anton Spirin, 2018-05-15
@Konstantin-P92

Learn to analyze code in the developer panel.
You can make such a footer like this:

.content {
  margin-bottom: 400px;
}

.footer {
   position: fixed;
   bottom: 0;
   left: 0;
   right: 0;
   height: 400px;
   z-index: -1;
}

Demo.

D
Darkhan Kamaliev, 2018-05-15
@darakanoit

Open the site, press ctrl shift I and start exploring the block you need
. The effect is created using position : fixed and a negative z-index;
An example code was given to you above.

A
A person from Kazakhstan, 2018-05-15
@LenovoId

https://jsfiddle.net/hL7wow99/1/ - modified to make the answer visible Anton Spirin

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question