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?
3 Respostas
+ 4
Can you post your code?
+ 1
make sure you have position:absolute; and bottom:0; properties on your footer element!
+ 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".