0

Im starting to feel crazy here. My footer doesnt reach the window edges even though its defined (at least i think so)

.footer {
  height: 200px;
  bottom: 0px;
  margin: 0px;
  left: 0px;
  right: 0px;
  padding: 0px;
  width: 100%;
  background-color: #E5E5E5;
  text-align: center;
}
<footer>
  <div class="footer">
    <p>Footer</p>
  </div>
</footer>
SMAKSS
  • 9,606
  • 3
  • 19
  • 34
awesome_o
  • 41
  • 4

1 Answers1

1

I removed margin from html and body tag

 html,body{
    margin:0;
 }
.footer {
 height: 200px;
 bottom: 0px;
 margin: 0px;
 left:0px;
 right:0px;
 padding: 0px;
 width: 100%;
    background-color: #E5E5E5;
    text-align: center;
}
<footer>
 <div class="footer">
  <p>Footer</p>
 </div>
</footer>
Nilesh Chavan
  • 361
  • 3
  • 10