简体   繁体   中英

dynamic height css sticky footer

I was looking recently for a dynamic css sticky footer solution and came across this one: http://pixelsvsbytes.com/examples/sticky-footers-the-flexible-way/simple.html

it seems to work great in most of the popular newer browsers that i've tried but for some reason chrome doesn't display it in the same way and my guess is that safari acts in the same way.

can anyone point a finger on where the problem might be?

Thank you.

ok I solved it thanks to Explosion Pills comment.

It is most likely a bug if you set the body tag display property to be display: table .

to solve it just place the elements inside another div tag and set it as display: table

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM