min-height:100% doesn't work on my container?

后端 未结 2 414
执念已碎
执念已碎 2021-01-24 21:58

Dear fellow readers on Stack Overflow, I am currently working in CSS and I ran into trouble with giving my container a minimal height of 100% to get my footer at the bottom of t

2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-24 22:38

    If you want to put your footer at the bottom of the page you can either position:absolute;bottom:0; or http://css-tricks.com/snippets/css/sticky-footer/

    http://jsfiddle.net/CP6Qk/

提交回复
热议问题