d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Basic Css
Add Reply New Topic New Poll
Member
Posts: 55,688
Joined: Jun 8 2006
Gold: 7.00
Jun 2 2015 12:16pm
how do you keep your footer in the end of the page while being able to scroll down through a text?

Thanks :)
Member
Posts: 6,481
Joined: Jul 5 2009
Gold: 0.70
Jun 2 2015 12:24pm
I think you want "position:fixed" on your footer div
Member
Posts: 55,688
Joined: Jun 8 2006
Gold: 7.00
Jun 2 2015 12:26pm
Quote (mebeatyou @ 2 Jun 2015 20:24)
I think you want "position:fixed" on your footer div


yea but it won't work as intended, it fixes it but it also mean that if I have a very long text the footer hides the end of it instead of scrolling.

the poor fix is to add <br /> multiply by X so it doesn't do that, but it's a poor fix.
Member
Posts: 6,481
Joined: Jul 5 2009
Gold: 0.70
Jun 2 2015 12:39pm
Quote (Lensherr @ Jun 2 2015 02:26pm)
yea but it won't work as intended, it fixes it but it also mean that if I have a very long text the footer hides the end of it instead of scrolling.

the poor fix is to add <br /> multiply by X so it doesn't do that, but it's a poor fix.



Maybe I'm misunderstanding you.

Could you post the site here or code (or PM to me if you'd rather)?
Member
Posts: 29,723
Joined: Jun 11 2007
Gold: 279.52
Jun 2 2015 12:52pm
i think i know what your saying, also put a margin at the top of your footer


Code

#footer {
position:fixed;
margin-top:40px;
}

Member
Posts: 55,688
Joined: Jun 8 2006
Gold: 7.00
Jun 2 2015 01:00pm
that's my problem, maybe it'll fix it, I need to test :

http://cssreset.com/how-to-keep-footer-at-bottom-of-page-with-css/
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll