- This topic is empty.
-
AuthorPosts
-
October 14, 2013 at 5:09 am #152935mikaParticipant
Hi folks,
i’m coding responsive site with skeleton framework (http://testi3.aada.fi/index.html) for customer that now wants its footer to float at the bottom of page no matter height of the page.
How i’m gonna do this..? when
.site-footer { position: fixed; bottom:0px; }
destroys everything and my responsive nav just disapers ;-)
// Mika
October 14, 2013 at 7:04 am #152942Paulie_DMemberposition: fixed; Width: 100%; bottom: 0;
Doesn’t work?
October 14, 2013 at 7:14 am #152944jaycrispParticipantDo you mean a sticky footer?
October 15, 2013 at 12:22 am #153021mikaParticipantThx for replies guys!
I find solution..Hail to the Paulie_D !!..
// Mika
October 15, 2013 at 6:38 am #153038mikaParticipantHi guys! :-)
Paulie’s code worked great on my index page, but somehow same code on my content page
did not:index page: http://testi3.aada.fi/index.html
content page: http://testi3.aada.fi/me.htmlthis is weird coz pages use same code for footer:
.container {
min-height: 100%;
/* equal to footer height */
margin-bottom: -120px;
}.container:after {
content: “”;
display: block;
}.site-footer, .container:after {
/* .push must be the same height as footer */
height: 120px;
text-align: center;}
.site-footer {
background-image: url(../images/footer_bg_trans.png);
background-repeat: no-repeat;
background-position: center top;
text-align: center;
position: fixed;
width: 100%;
bottom: 0;
}what i have missed ?
// M
// Mika
October 16, 2013 at 1:27 am #153135Tomasz LisieckiParticipantHi ;)
I just had a quick glance at your code as I am in a little rush (working :P). Quick thing I noticed is that
.ten
wrapper element in your<footer>
on /me.html page isn’t stuck to the bottom of the screen. This causes the navigation to fall out from the gray area.Quick (and probably lame) solution would be to do:
.ten { position: relative; bottom: -20px; }
Also I noticed that footer links on me.html are using different font family. I am not sure why. I bet both issues are caused by some CSS declarations missing or markup error (which can also be clash of classes or invalid order of elements…).
Hope it points you into the right direction or someone else can have a deeper look into your code.
I’m off! :)
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.