Bootstrap 3 Flush footer to bottom. not fixed

前端 未结 13 2725
走了就别回头了
走了就别回头了 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条回答
  •  猫巷女王i
    2020-12-02 04:18

    use flexbox as you can use it at your disposal. The solution offered by bootstrap 4 still hunting overlap content in responsive layout, e.g: it will break in mobile view, i come across the most neat trick is to use flexbox solution demo shown at here:(https://philipwalton.github.io/solved-by-flexbox/demos/sticky-footer/) this way we do not have to deal with fixed height issue which is an obsolete solution by now...this solution works for bootstrap 3 and 4 whichever you using.

    
      
    .Site { display: flex; min-height: 100vh; flex-direction: column; } .Site-content { flex: 1; }

提交回复
热议问题