0

I have emberjs application and I tried to create sticky footer.

My html:

<div class="main-container" id="">
  <header> HEADER </header>

  <div class="container">
    {{outlet}}
  </div>

  <footer>
    footer text
  </footer>
</div>

The CSS:

.ember-view {
  height: 100%;
}

.main-container {
  min-height: 100%;
  height: auto !important;
  height: 100%;
  margin: 0 auto -40px;
}

footer {
  clear: both;
  line-height: 40px;
  width: 100%;
}

For unknown reason the footer is still not stick to the bottom.

Any idea?

Thanks a lot :)

noamkn
  • 9
  • 1

1 Answers1

0

In your css you should add the following properties to your footer

footer {
position: fixed;
bottom: 0;
}
IvanJ
  • 645
  • 5
  • 19