I'm a beginner when it comes to Bootstrap, and I'm attempting to integrate it with Symfony2. I currently have a sticky top bar in place for navigation purposes. However, I'm facing an issue when I try to add a similar sticky footer at the bottom - it ends up overlapping my content. To resolve the issue with the top navigation bar, I've utilized a JQuery script as shown below:
$(document).ready(function(){
$(document.body).css('padding-top', $('#topnavbar').height());
$(window).resize(function(){
$(document.body).css('padding-top', $('#topnavbar').height());
});
});
The structure of my main Twig layout is as follows:
<div class="navbar navbar-default navbar-fixed-top" id="topnavbar">
<div class="container-fluid">
</div>
</div>
{% block body %}
{% endblock %}
<footer class="footer navbar-fixed-bottom">
</footer>
I have already tried using original CSS, experimenting with 'margin bottom' and 'padding bottom', but the issue of content overlapping within the {% block body %} persists. I'm at a loss for how to rectify this problem - does anyone have any suggestions?