Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sticky footer at bottom in angular

Tags:

css

angularjs

I am trying to place a footer at the bottom .

enter image description here

and it is for some reason coming out like this.

In index.html, I have:

<main flex layout="column">
      <div>
        <div ui-view="" ></div>
      </div>
    </main>

    <footer>
      <md-toolbar class="md-hue-2 md-scroll-shrink">
        <div layout="row" layout-align="center center" flex>
          Powered by Webocity Technologies
        </div>
      </md-toolbar>

Sticky or not, this looks wrong. What seems wrong here and how to fix this?

like image 331
S Khurana Avatar asked Dec 11 '22 08:12

S Khurana


1 Answers

Use position:fixed;bottom:0px; to display your footer at bottom

footer{
position:fixed;
bottom:0px;
background-color:pink;
width:100%;
}
<main flex layout="column">
      <div>
        <div ui-view="" ></div>
      </div>
</main>

<footer>
  <md-toolbar class="md-hue-2 md-scroll-shrink">
    <div layout="row" layout-align="center center" flex>
      Powered by Webocity Technologies
    </div>
  </md-toolbar>
</footer>
like image 57
Kalaiselvan Avatar answered Dec 20 '22 19:12

Kalaiselvan