Answer the question
In order to leave comments, you need to log in
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
Why is flex missing? Here's your compatibility . so flex is now the most correct and cross-browser option
<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%;
}
https://codepen.io/anon/pen/vdRvqq
Any content can be in the container class
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question