I used this guide to make a footer below: http://philipwalton.imtqy.com/solved-by-flexbox/demos/sticky-footer/
This manual uses a flexible box to complete the task. It worked great on Chrome and Firefox, and even Edge. But on IE11, all the elements fall on each other, as in this image:

Code Demo:
body {
min-height: 100%;
position: relative;
}
.container {
display: flex;
min-height: 100vh;
height: 100%;
flex-direction: column;
}
.Site {
display: flex;
min-height: 100vh;
flex-direction: column;
background-color: green;
}
.Site-content {
flex: 1;
background-color: red;
}
footer {
background-color: blue;
height: 50px;
}
<body class="Site">
<div id="react-root">
<div class="container">
<main class="Site-content">Site</main>
<footer>Footer</footer>
</div>
</div>
</body>
Run codeHide resultAny idea how to fix this? Thanks in advance: -)
source
share