Site logo

Archived topic

Extend page (content) height

9 replies · Started by Anonymous on November 12, 2014

Viewing posts 1–10 of 10

I have a page design with only one content container (i.e. no sidebars and content layout is set to one container). I would like to make the main container extend to the bottom of the browser window (footer showing as well) regardless of how much content there is on a page. So that there would not be any background showing after footer.

I've tried some css but no success. Is this doable?

Thanks much :)

Thanks again Tom :).
I may just leave it as it is, but good to know I have a back up plan if the client really doesn't like the page the way it is.

Great template, addons and awesome support Tom. Really happy I stumbled across GeneratePress!

Glad you're enjoying GP!

If you decide to tackle this and run into issues, let me know :)

Hi Tom,

in the meantime, is there a better way to achieve this?
How would I add the wrappers of the proposed method to each page?

Cheers,
David

Hi Leo,

unfortunately not. I think the problem is similar but not the same.
In my case the page is not tall enough as well and that leads to undesirable white space below the footer bar.

That is the same problem actually.

Have you tried applying the CSS?

Yes. Unfortunately not working... :(

That CSS is supposed to add the same color as your footer bar below the footer, so there's not a sudden color change.

Actually sticking the footer to the bottom of your browser requires javacript, which will hurt the performance of your page. Might be better to use the above method, or even set a min-height to your content?

This archived topic is closed to new replies.