-
Hi,
I would like my website to use the full hight of the browser window if the height is smaller, how can I eliminate the padding below the footer?
The problem occurs for the startpage and contact (= Kontakt).
Content vertically centered? Full height?
website link in Private Information.
Thx for your help.
best,
Torsten -
Hi there,
Try this CSS:
body { min-height: 100vh; display: flex; flex-direction: column; } .site-footer { margin-top: auto; } .site { flex-grow: 1; width: 100% !important; } -
Top.Thx a lot!
-
No Problem 🙂
-
Hi,
I tried the above CSS on another Website of mine and the title and Menu are getting centered, therefor I deactivated the code.
Could you supply a change of the CSS so that the menu remains “as-is”, Website title left-aligned, Menu right-aligned?
Thx ahead!
Torsten -
George
Hi Torsten,
What is the URL of the other website? You can paste it in the private section of your reply as well.
-
I posted the link already in Private Informaton.
-
George
Apologies, I thought it was the link from the previous site.
You can use this CSS instead.
body { min-height: 100vh; } .site-footer { position: sticky; top: 100vh; } -
perfect!
THX -
George
No problem!
- You must be logged in to reply to this topic.