W
W
William662018-02-15 23:54:08
css
William66, 2018-02-15 23:54:08

How to properly align divs to the footer?

Question for CSS connoisseurs
what it looks like now:
5a85f2e979c5e171958280.gif
what does the menu look like, with attributes:

position: absolute;
bottom: 0;

5a85f32f205d0370298404.gif
you want the menu and footer to be always in view, and the slider to stretch and shrink from the edge of the menu, and not from the very edge of the screen

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xmoonlight, 2018-02-16
@xmoonlight

1. padding-bottomat the content block (where the slider is), make it equal to the height of the footer and set it behind the footer: z-index:1.
2. And when the menu appears, just change padding-bottomthe content block to the height of the menu. If not changed, the menu will open "on top" (as it is now in the animation).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question