I am having trouble with positioning the footer so that it always stays at the bottom of the page. When there is not enough content on the page, the footer does not reach the bottom as desired. Additionally, the footer does not have a fixed height. Below is the code I am currently using.
<%
ArrayList<MateriaBean> materieFooter=(ArrayList<MateriaBean>)session.getAttribute("materie");
%>
<div class="container footer-container">
<div style="height: 10px"></div>
<div class="col-xs-12 col-sm-9 col-md-9 center-column">
<div class="col-md-12">
<strong><p>Materie</p></strong>
<hr>
<%
if (materieFooter != null) {
for (int i = 0; i < materieFooter.size(); i++) {
String mat = materieFooter.get(i).getNome();
%>
<ul class="list-unstyled col-xs-4 col-md-3">
<li><%=mat%></li>
</ul>
<%
}
}
%>
</div>
</div>
</div>