How to Create: Fixed Footer

Learn how to use CSS to create a fixed/sticky footer.

Try It Yourself

How to Create a Fixed Footer

<style>
.footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: red;
  color: white;
  text-align: center;
}
</style>
<div class="footer">
  <p>Footer</p>
</div>

Try It Yourself

Related Pages

Tutorial:CSS Positioning