-
ultracello
Hey, please check two sites:
https://ultracello.de/ (enough content, so the footer is shown on the bottom, it’s good)
https://ultracello.de/kontakt (not enough content, so the footer is hanging in the middle of the site)How can I make it happen to display the footer always on the bottom no matter how much content does have the website?
I tried
footer { position: relative; left: 50%; width: 100%; bottom: 0px; transform: translateX(-50%); }
…but it looks like this is not correct.
Many thanks for helping out!
-
Hi there,
Can you try the solution provided by David here:
https://generatepress.com/forums/topic/cant-get-menu-nav-or-footer-to-be-sticky/#post-1232453 -
ultracello
Hey Alvind,
great, many thanks!
.site-footer { margin-top: auto; }
…was the key. I just used the wrong class
footer
.The other CSS code I added already to the code. Works great! Thank you!
-
You’re welcome!
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.