- This topic has 16 replies, 7 voices, and was last updated 4 years, 10 months ago by David.
-
AuthorPosts
-
March 10, 2016 at 4:54 am #178212Damiaan van Vliet
Hi Tom,
For a site with little text I want to add an stick footer because the footer is too high when visible on a large screen. Also beneath the footer is the background image visible.
I tried css code I found on this support forum but on Safari it is not working, footer is gone.Do you have a solution or work around? I don’t understand why stick footers are so difficult.
site url: testsite
Thanks!
Damiaan.- This topic was modified 8 years, 1 month ago by Damiaan van Vliet.
March 10, 2016 at 11:17 am #178310TomLead DeveloperLead DeveloperHi there,
For some reason they are quite difficult.
This topic may help: https://generatepress.com/forums/topic/how-to-stick-the-footer-at-the-bottom/
Let me know π
March 10, 2016 at 12:11 pm #178326Damiaan van VlietHi Tom, thanks but I have found that forum thread but for my site it works on Chrome/FF but not on Safari strangely enough.
Will try to find if I maybe do something else wrong.
When I really can’t find a solution I will leave a reply to this thread.Bye,
Damiaan.March 11, 2016 at 12:22 am #178418TomLead DeveloperLead DeveloperIt’s weird, such an obvious thing some people would want, but very difficult to achieve without lots of javascript in most cases.
I’ve never found a solution for it that I like 100%.
March 11, 2016 at 12:30 am #178425Damiaan van VlietHi Tom,
I didn’t think it would be weird for you π
But thanks for reply and have a nice weekend.Bye,
Damiaan.March 11, 2016 at 12:33 am #178426TomLead DeveloperLead DeveloperYou too π
March 11, 2016 at 1:16 am #178435Damiaan van VlietTom, I have still a question. Because I use for the body of the site a background image (png, very small but with a color) below the footer also that image.
It would be great to see below the footer a white background.
I tried to place the background image on the content but than the background image will scroll.
Or I do something wrong πHope my question is clear, is there a solution?
Test site: see this websiteThx
March 11, 2016 at 8:35 am #178536TomLead DeveloperLead DeveloperUnfortunately this is the same issue as before:
http://stackoverflow.com/questions/20621888/background-color-for-below-footer-only-unknown-height-of-area
http://stackoverflow.com/questions/1900813/footer-background-should-extend-to-bottom-of-browserDid you look at this solution?: http://ryanfait.com/sticky-footer/
It’s apparently compatible with Safari.
March 13, 2016 at 11:40 am #178985Damiaan van VlietHi Tom,
Thanks for the link from Ryan Fait. I know that site but it has a different html layout so I cannot use it for GP site or I need to change a lot I am afraid.Is there a solution for the following:
Because I use for the body of the site a background image (png, very small but with a color) below the footer also that image is visible.
It would be great to see below the footer a white background.
I tried to place the background image on the content but than the background image will scroll or am I doing something wrong.Site url: the site with the problem
March 13, 2016 at 7:29 pm #179066TomLead DeveloperLead DeveloperUnfortunately it’s the exact same issue – the only way to fix it is one of the solutions in the topic linked to above.
June 8, 2018 at 2:37 am #594946OliverWhat about this simple little CSS? That worked for me very well.
.site-footer{ position: fixed; bottom: 0; left: 0; right: 0; }
June 8, 2018 at 2:48 am #594954DavidStaffCustomer SupportHi Olivier, this is quite an old post. But thanks for sharing, in case others need a similar requirement.
June 23, 2018 at 8:48 pm #607139MichaelFor anyone else, this might help:
html, body { height:100%; } body { display: flex; flex-direction: column; } div.container { flex: 1 0 auto; } div.site-footer { flex-shrink: 0; }
September 10, 2018 at 6:50 am #673212Patriciahi, what’s the best solution?
.site-footer{
position: fixed;
bottom: 0;
left: 0;
right: 0;
}or
html, body {
height:100%;
}body {
display: flex;
flex-direction: column;
}div.container {
flex: 1 0 auto;
}div.site-footer {
flex-shrink: 0;
}??
September 10, 2018 at 7:10 am #673225DavidStaffCustomer SupportHi there,
i replied to your topic directly.
-
AuthorPosts
- You must be logged in to reply to this topic.