Title: conditional css for footer (float problem)?
Last modified: August 19, 2016

---

# conditional css for footer (float problem)?

 *  [tchandler](https://wordpress.org/support/users/tchandler/)
 * (@tchandler)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/conditional-css-for-footer-float-problem/)
 * i have float left elements (a css grid image gallery) on a single page in wp.
   they end up making the page hang down into the footer unless i add this bit of
   code to the stylesheet.
    #footer {clear: both; width: 900px; float:left; }
 * this recenters the footer and fixes the problem, but then on every other page,
   the footer is misaligned (floating left). is there a way to apply the above css
   to an instance of the footer on a single page? my guess is that will require 
   some conditional php statement, perhaps in footer.php– but this is way over my
   head. can anyone help me out (or give me a better solution)?
 * thanks!

The topic ‘conditional css for footer (float problem)?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [tchandler](https://wordpress.org/support/users/tchandler/)
 * Last activity: [15 years, 10 months ago](https://wordpress.org/support/topic/conditional-css-for-footer-float-problem/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
