S
S
Semmy_992018-02-20 16:17:40
css
Semmy_99, 2018-02-20 16:17:40

How to adaptively and cross-browser push the footer to the bottom of the screen?

Hello.
Please tell me how to support android 4.2, i.e. cross-browser push footer to the bottom of the screen?
I read the options that the search gave out, but did not find a suitable one.
There are small nuances:
- the site is adaptive and emails can be added to it dynamically.
The variant with flex'ami disappears, tk. no support.
The option to absolutely position the footer is also not very suitable. When narrowing the screen, everything goes and given that e-you are added dynamically, you will need to constantly monitor this.
Are there any other options?

Answer the question

In order to leave comments, you need to log in

7 answer(s)
M
mr_dev1l, 2018-02-20
@mr_dev1l

Why is flex missing? Here's your compatibility . so flex is now the most correct and cross-browser option

A
Andrew, 2018-02-20
@AndrewHaze

<div class="wrapper">
  <div class="content">
  </div>
  <div class="footer">
  </div>
</div>

* {
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
}
.wrapper {
  display: table;
  height: 100%;
}
.content {
  display: table-row;
  height: 100%;
}

6
65536, 2018-02-20
@65536

Survived pre-flex times with this csstemplater.com

A
Atlllantis, 2018-02-20
@Atlllantis

position: fixed

X
xmoonlight, 2018-02-20
@xmoonlight

here is an example

L
Lone Ice, 2018-02-20
@daemonhk

https://codepen.io/anon/pen/vdRvqq
Any content can be in the container class

A
Anna, 2018-03-01
@Virall

Through the minimum height I use the calc() function and vh values ​​https://jsfiddle.net/wey7kpbx/2/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question