1

I don't understand why my footer is sitting slightly above the bottom of my webpage and not directly on the bottom

Footer currently

h6 {
  font-family: Neue Haas Grotesk, sans-serif;
  font-weight: 300;
  font-size: 1.4vw;
  color: white;
  position: relative;
  display: block;
}

.footer {
  position: relative;
  display: inline;
  bottom: 0;
  width: 100%;
  height: 100%;
  margin-bottom: 0;
  padding: 0;
}
<div class="footer">
  <h6>&copy; Alex Burger. All rights reserved<br>Further information can be requested through email.</h6>
</div>
j08691
  • 204,283
  • 31
  • 260
  • 272

1 Answers1

2

The <h6> tag has a native margin. So your problem will be solved with:

.footer h6 {
  margin-bottom: 10px;
}

Note that setting margin: 0px have not the result that you expect, this will only be solved changing other parts fo your document.

Alyson Maia
  • 802
  • 5
  • 14