0

How do I make footer stay at bottom of content?

Hello, I have a problem here. I have a footer in this code but I don't want it to be absolute or fixed as I don't want it to be stuck to the page or visible always. I want to have a relative footer at the bottom of the content which you can only see if you scroll down. But making it position relative doesn't make it visible. What should I do? Any help is appreciated Thanks in advance https://code.sololearn.com/WQ383vPhQOMw/?ref=app

25th Apr 2020, 9:57 AM
Evans
Evans - avatar
6 Answers
+ 2
You may set bottom:0%; For this purpose.
25th Apr 2020, 10:57 AM
Ayush Kumar
Ayush Kumar - avatar
0
Do this body{ position: relative; } #footer{ position: absolute; }
25th Apr 2020, 10:40 AM
Ore
Ore - avatar
0
@Ore Adeleye I have already set bottom:0; and making body relative isn't working
25th Apr 2020, 4:41 PM
Evans
Evans - avatar
25th Apr 2020, 4:49 PM
Ore
Ore - avatar
0
It doesnt work. I dont want it to be stuck, just at the very bottom like normal webpages
25th Apr 2020, 5:32 PM
Evans
Evans - avatar
0
Ore Adeleye it works in the home screen - that's where there is no other content. But please open the menu -> click electronics and select first option. There is content here and the footer doesn't work.
26th Apr 2020, 9:40 AM
Evans
Evans - avatar