bwakad Posted August 14, 2014 Posted August 14, 2014 I am curious to see what technique you all use to have a bottom always, or near the bottom. I have tried several scripts, css hacks, and none seems to have the effect I am looking for: to display footer at bottom, under content, to display foorter at bottom, if no content. Since I am using foundation and even the developers have trouble implementing this (forum zurb), I now use this which does not give me any trouble at all... : <body> <nav> my topbar navigation </nav> <div class="wrapper"> my content </div> <!-- wrapper ends --> <footer> footer content here </footer> </body> // I use this css so that my wrapper always is at least 80% // of <body> minus the total height of (<nav> + <footer>) : .wrapper { margin: 5% 0%; /* this is outside the element */ min-height: 70%; /* this is inside the element */ }
bwakad Posted August 14, 2014 Author Posted August 14, 2014 A million hits, and not much good results. Someone can move it to off-topic if they want to. I simply asked if one has another solution (using) PW + foundation = php + css ps. sticky footer is NOT a bottom footer perse.
Manfred62 Posted August 14, 2014 Posted August 14, 2014 hmm, did you google "sticky footer foundation"? There are a lot of snippets.
Martijn Geerts Posted August 14, 2014 Posted August 14, 2014 There's a sticky footer in the pedigree profile.
Martijn Geerts Posted August 14, 2014 Posted August 14, 2014 @Manfred62, using javascript for a sticky footer is in my opinion a bad habit. if it's reasonable & possible with html & CSS, do it that way.
Manfred62 Posted August 14, 2014 Posted August 14, 2014 @Manfred62, using javascript for a sticky footer is in my opinion a bad habit... believe me... I'm neither using Foundation (as framework) nor javascript for sticky footers 1
bwakad Posted August 14, 2014 Author Posted August 14, 2014 Thanks Martijn. Seems like a reasonable solution.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now