White space appears below sticky footer, only in PHP

拈花ヽ惹草 提交于 2020-01-17 04:31:28

问题


I have a problem when trying to implement a css sticky footer on my page, using Ryan Fait's technique.

I have followed his instructions to a T. The footer displays exactly as expected when applied to an .html file. However, I am using PHP to generate my web pages, and for some reason a fair amount of white space appears below the footer, only when the style is applied to PHP.

I looked at the source in Firebug and the <div class="wrapper"> has extra height in the PHP version, which is not present in the html alone.

I've formatted my html according to instructions and have the following structure, nested within <html> and <body> tags.

<div class="wrapper">
    <div class="content">
        <!-- Content in here -->
    </div>
    <div class="push"></div>
</div>
<div class="footer">
    <!-- Footer in here -->
</div>

Are there any known issues with extra white space below sticky footer elements only in php and if so, how could I resolve this?

来源:https://stackoverflow.com/questions/24550074/white-space-appears-below-sticky-footer-only-in-php

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!