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

后端 未结 2 413
执念已碎
执念已碎 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:29

    you need to set your parent to a fixed height.

    See this article: http://www.search-this.com/2007/02/05/css-min-height-explained/

    0 讨论(0)
  • 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/

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