ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > RocketCake
forum topic indicator Set the main container to 100% height so that the footer stays at the bottom.
person icon
guest_David
Guest
Quote
2025-09-10 18:21:26

Can anyone help me here?

Problem: I have a page with a fixed header and a normal footer. The footer should always stay at the bottom of the page, regardless of whether the main content is short or long.

Current behavior: With short content, the footer “floats” somewhere in the middle. Only when there is enough content does it move down and become visible when scrolling.

Important: The main area (middle container) can exceed one screen height – it can grow as much as needed. The only goal is that the footer always remains at the bottom of the page, without being sticky or fixed.

Question: How should I adjust the middle container so that the footer always stays at the bottom, regardless of the content height?

person icon
niko
Moderator
Quote
2025-09-11 07:28:08

The simplest way to do this is to force your content container which is on top of the footer to be at least as large as the screen height (or a bit lower than that). Do it like this:

Right-Click your content container, select "HTML Code..." -> "Additional CSS Styles" and enter this:

min-height: calc(100vh - 100px);


Adjust the "100px" to be a value fitting for you, like how large the header and footer together are in height.

Then it should work.


Create reply:










 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






Copyright© Ambiera e.U. all rights reserved.
Contact | Imprint | Products | Privacy Policy | Terms and Conditions |