Awhile back I asked how I could push the footer to the bottom and you suggested using the snippet below. While this does push the header to the bottom it results it does not expand my content vertically between the header and footer, so the content border does not extend to the footer. I could use “height: calc(100vh - 220px)” in the content’s class but calc() is only supported on the newest browsers.
Is there any way to expand a row vertically so the header appears at the bottom?
/* PUSH FOOTER TO BOTTOM OF PAGE WITH LIMITED CONTENT /
.fl-page {
position: relative;
min-height: 100vh;
padding-bottom: 30px; / Should be equal to the height of your footer */
}
.fl-page-footer-wrap {
width: 100%;
position: absolute;
bottom: 0px;
}
One more thing: even without any CSS to push the footer to the bottom, there is a 1px gap between the bottom of my content border and the top of the footer. I’ve disabled borders, margins, padding and played around with CSS inspector tools but can’t seem to remove it. Any ideas?
Ah, so you’re referring to how the bottom red border is darker on the content area compared to outside the content area? That would be caused by the box-shadow you’ve added to the content area. The shadow is what’s causing the red to be a bit darker. Try adding a top margin to your first row and you’ll see it go away.