0

What am I doing wrong?😥

When I'm CSS styling my footer element especially the background color,it end up appearing in the middle of the my website. What could be the problem?

2nd Dec 2016, 8:08 PM
Sidepocket
Sidepocket - avatar
3 Respostas
+ 4
Can you post your code?
2nd Dec 2016, 8:08 PM
James Flanders
+ 1
make sure you have position:absolute; and bottom:0; properties on your footer element!
2nd Dec 2016, 8:37 PM
Nedim Kanat
Nedim Kanat - avatar
+ 1
.footer { background-color: #aaa; bottom: 0px; height: 20px; left: 0px; position: fixed; right: 0px; } This will fix footer on bottom... if you have long page with scrolling use "absolute" instead of "fixed".
2nd Dec 2016, 8:45 PM
Ondřej Doněk
Ondřej Doněk - avatar