A
A
Avivar2017-03-22 18:49:34
css
Avivar, 2017-03-22 18:49:34

How to push footer of arbitrary height to the bottom?

Hello.
A fixed height footer can be pressed through absolute positioning and padding from the body to the height of the footer.
But how to press the footer in rubber sites, when when the window width decreases, the height of the footer changes and it starts to run into the main part of the page?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
I
iBird Rose, 2017-03-22
@iiiBird

https://jsfiddle.net/e7kxwwm8/

D
dom1n1k, 2017-03-22
@dom1n1k

In 2017, after all, flexbox. You can already :)
Without any crap with additional technological wrappers.

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

easiest on flex
but also position:relative; for parent and position:absolute; for the desired element also does not work well

A
Anton Anton, 2017-03-22
@Fragster

use tables, bro (sample - fragster.ru :))

I
Ivan Bogachev, 2017-03-22
@sfi0zy

one
two
three
four
five
... the footer came out for a walk!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question