-1

I tried everything now. My footer-bar keeps staying in the middle of the page or fixed on the bottom of the screen. I need it on the bottom of the page, no matter how much content I put on the website.

#footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #000000;
}
<div id="footer">

</div>
andreas
  • 16,357
  • 12
  • 72
  • 76
Munksgaard
  • 25
  • 1
  • 6

1 Answers1

0

Use bottom : auto, instead of '0'

#footer {
position: absolute;
right: 0;
bottom: auto;
left: 0;
width:100%;
height:60px;
background:#000000;
}
content <br>Content<br>Content
<div id="footer">

</div>
Jones Joseph
  • 4,703
  • 3
  • 22
  • 40