It seems like there are already many discussions on this topic, so I apologize if this is a duplicate. I searched for it but couldn't find anything similar.
I am currently working on an angular application using the Ionic framework for testing purposes. My goal is to create a footer that always stays at the bottom of the page, but for some reason, it isn't working as expected.
This is what I am experiencing (the orange bar should be the footer): https://i.sstatic.net/bwQM8.png
I have tried implementing a solution similar to Ryanfait's stickyfooter.
Here is my CSS:
* {
margin: 0;
}
html, body {
height: 100%;
}
.page-wrap {
min-height: 100%;
/* equal to footer height */
margin-bottom: -150px;
}
.page-wrap:after {
content: "";
display: block;
height: 150px;
}
#mainView #footer {
height: 150px;
background: orange;
}
And here is my HTML:
<div class="page-wrap">
<div id="logo-ionic">
<img src="img/ionic.png" />
</div>
</div>
<div id="footer">
<!-- Footer content blablabla -->
</div>
I prefer not to use a javascript solution for this issue.
Thank you! (: