I am trying to implement a STICKY FOOTER (with unknown Height) for my website in HTML5 and CSS3. I have tried so many ways, but there seems to be a problem with the margin
of my main part.
Here is what I have:
body {
background: #000;
font-family: Arial;
}
main {
margin: 50px;
}
<body>
<header>
</header>
<div id="first">
</div>
<main id="main">
</main>
<footer>
</footer>
</body>
The HEADER and FOOTER are equal to the body - so, no more code.
Please note: I have used the reset.css to do everything on my own!
Here is what I tried the last hours:
- CSS Sticky Footers with Unknown Height
- http://galengidman.com/2014/03/25/responsive-flexible-height-sticky-footers-in-css/
- http://blog.mojotech.com/responsive-dynamic-height-sticky-footers/
- http://timothy-long.com/responsive-sticky-footer/
- https://gist.github.com/jdlich/4166622
- http://www.ninjabuilt.com/36/simple-sticky-footer/
- http://codepen.io/corysimmons/pen/DCmtI
- AND MUCH MORE...
Please do not recommend the FLEXBOX - that does not work on mobile devices and in the IE 10.