I need my page footer to stretch the whole page using bootstrap 3

痴心易碎 提交于 2019-12-25 02:26:00

问题


I'm currently building a site using twitter bootstrap 3 as the frame work for the front end.

I'm trying to get my footer to stretch to 100% of the page the same way the navbar and carousel do, but it keeps keeping it within the page container i think.

I'd really appreciate some help as I@m a bit of a novice with bootstrap.

The page is http://dmc.dudmc.com


回答1:


You're going to have to wrap the footer container between these:

<div role="navigation">
    <div class="container">

    <!-- your footer -->

    </div>
</div>

You may have to further edit the classes, but by default, this should work.

EDITED: having another look at your code i see that the container you use for your footer is within another container. I suggest you either take it out of that container or simply apply width:100% to both containers (in line or in your custom css). Make sure you remove any side margins.



来源:https://stackoverflow.com/questions/23312119/i-need-my-page-footer-to-stretch-the-whole-page-using-bootstrap-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!