I'm trying to get my footer to stay at the bottom of the page and I feel like I have tried everything. If a page lacks content then the footer pushes right up underneath the body. My current css for my footer is:
width: 100%;
height: 50px;
border-top: 1px solid #fff;
The div before the footer is a container with this css:
padding-right: 15px;
padding-left: 15px;
margin-right: auto;
margin-left: auto;
I have tried absolute positioning the footer with bottom: 0 but that doesn't give the desired result. I have tried clear: both on the footer and container with a position of relative. I have tried fixed positioning but that doesn't give the desired result either. Does anyone have any solution I could use?