CSS Floating Footer

前端 未结 2 1366
隐瞒了意图╮
隐瞒了意图╮ 2021-02-06 05:04

I want to make a footer that stays at the bottom of the viewable window UNLESS it butts up against the content when you resize the window smaller.

I tried... bottom:0; p

相关标签:
2条回答
  • 2021-02-06 05:09

    I believe this will do what you want: CSS layout: 100% height with header and footer. I've used it on a site and it can be tricky to implement depending on the complexity of your existing layout.

    0 讨论(0)
  • 2021-02-06 05:30

    I use the method as described by The Man In Blue called footerStickAlt - works a charm, CSS won't validate if you include the IE6 hack though.

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