• Hi,
    I’m using the twentythirteen theme with a child theme. I was trying to solve the infamous overflowing sidebar problem in:
    – making the content float left with a fixed width
    – making the sidebar float right with a fixed width
    – adding a clearfix class to the parent div

    Everything seems about right. BUT, for some reason, I find that the theme is adding a margin-top to my footer that seems to be equal to the difference between the bottom of the sidebar (right div) and the bottom of the entry content (left div), so the margin-top value is completely random (i.e. it’s not in the stylesheet). I could fix this by adding a margin-top: 0 but I really would like to understand what’s causing this. You can see what I’m talking about here: http://mywptestsite.is-great.org/page-height-and-sidebar/ There’s a margin-top of 641px on this page!

    <footer id="colophon" class="site-footer" role="contentinfo" style="<strong>margin-top: 641px</strong>;">

    Do you know where it’s coming from?

  • The topic ‘Why is WP automatically adding a margin-top to my footer?’ is closed to new replies.