问题
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