I think what you are looking for is called a โsticky footer,โ and there are several methods. I suggest you familiarize yourself with these sites:
Zoom in / out on each site to see how it appears when content reaches the footer or not.
Both methods do not match one: they require you to know the height of the footer - but I have not seen better solutions with CSS alone.
Wesley murch
source share