Bootstrap 3 Flush footer to bottom. not fixed

前端 未结 13 2615
走了就别回头了
走了就别回头了 2020-12-02 04:07

I am using Bootstrap 3 for a site I am designing.

I want to have a footer like this sample. Sample

Please note that I don\'t want it FIXED so bootstrap navba

相关标签:
13条回答
  • 2020-12-02 04:33

    For people still struggling and the answered solution doesn't work quite as you want it to, here is the simplest solution I have found.

    Wrap your main content and assign it a min view height. Adjust the 60 to whatever value your style needs.

    <div id="content" style="min-height:60vh"></div>
    <div id="footer"></div>
    

    Thats it and it works pretty well.

    0 讨论(0)
提交回复
热议问题