开发者

Extra padding below footer when using html5 doctype

开发者 https://www.devze.com 2023-03-19 12:06 出处:网络
I have recently applied a html5 doctype to this page: http://www.hostbasket.com/nl/shared-webhosting/windows/pakketten.html Now I notice extra padding below the footer.

I have recently applied a html5 doctype to this page: http://www.hostbasket.com/nl/shared-webhosting/windows/pakketten.html Now I notice extra padding below the footer. The two footer divs are positioned absolute to prevent the white background from appearing when pages are not 100% of height. Everything is fine with a transitional xhmtl1 doctype.

Using Firebug, I've set the #footer_bottom to bottom:-17px; the white space disappears. But why 17px? And 开发者_开发技巧I don't like negative position absolute!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号