I am currently working on implementing the Bootstrap 4 Sticky footer example
Everything seems to be working fine if I only have either the nav element or the span element as a child of the footer. However, when I include both elements, only the first one gets the grey background, and the vertical height adjustment of the browser window only applies to the first element, resulting in a persistent scrollbar.
Any idea what could be causing this issue?
The screenshot below displays only the top half of the footer by default: https://i.sstatic.net/e5sa1.jpg
Here is the Custom CSS being used:
/* Sticky footer styles
-------------------------------------------------- */
html {
position: relative;
min-height: 100%;
}
body {
margin-bottom: 60px; /* Margin bottom equivalent to footer height */
}
.footer {
position: absolute;
bottom: 0;
width: 100%;
height: 60px; /* Define fixed height for the footer here */
line-height: 60px; /* Vertically center text within footer */
background-color: #f5f5f5;
}
Below is the Footer Html code snippet:
<!-- footer -->
<div class="footer">
<footer class="text-center">
<nav class="footercontent">
<a href='http://blog.jthink.net' target='_blank' title='Jthink blog'><img src="http://jthink.net/images/blogger.png" alt="Jthink blog" title="Jthink blog" class="btn btn-outline"/></a>
<a href="https://www.facebook.com/pages/Jaikoz/15843367311" target="_blank" title="Jthink Facebook page"><img src="http://jthink.net/images/facebook.png" alt="Jthink Facebook page" title="Jthink Facebook page" height="32" width="32"/>
<a href="https://plus.google.com/b/103554086121439078551/+JthinkNet2/posts" target="_blank" title="Jthink Google+ page"><img src="http://jthink.net/images/google_plus.png" alt="google_plus" title="Jthink Google+ page" height="32" width="32"/>
<a href="http://youtube.com/jthinkltd" target="_blank" title="Jthink YouTube channel"><img src="http://jthink.net/images/youtube.png" alt="Jthink YouTube channel" title="Jthink YouTube channel" height="32" width="32"/>
<a href="mailto:<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4d3d2c3821392c34405124362e26223b72282627">[email protected]</a>" target="_blank" title="Email Paul at Jthink"><img src="http://jthink.net/images/email.png" alt="Email Paul at Jthink" title="Email Paul at Jthink" height="32" width="32"/>
<a href="http://mad.ly/signups/104159/join" target="_blank" title="Subscribe to Weekly Newsletter"><img src="http://jthink.net/images/subscribe_newsletter.png" alt="Subscribe to Weekly Newsletter" title="Subscribe to Weekly Newsletter"/>
</nav>
<span class="text-muted">Copyright JThink Ltd 2004 - 2018 All rights reserved. All trademarks acknowledged</span>
</footer>
</div>