Sidebar content falling below post content... (5 posts)

  1. BabyGotMaccom
    Posted 9 years ago #

    Good day all.
    I have a problem whereby if a posts content is 'short', the sidebar content shifts below it.

    An example is here: http://babygotmac.com/a/47

    If you scroll down past the comment section, you'll see that the Adsense has moved down there!

    But on a longer post (ex: http://babygotmac.com/a/46 ) it is fine.

    The CSS for that area is as follows:

    [long code moderated]

    I'm not really sure what's going on with this one. If you need to see other files, please let me know, and thanks for any help you can offer.

  2. moshu
    Posted 9 years ago #

    Don't post long code here. Use http://wordpress.pastebin.ca

  3. BabyGotMaccom
    Posted 9 years ago #

    Very sorry. I should have known better.

    Here's the CSS portions: http://wordpress.pastebin.ca/312281

    And here is the single.php: http://wordpress.pastebin.ca/312279

    And the pastebin is awesome, wow.

  4. BabyGotMaccom
    Posted 9 years ago #

    Oh, and here is 'sidebarsingle', which I created so I could use different sidebar content than on the index page.


  5. BabyGotMaccom
    Posted 9 years ago #

    Well, I fixed it, but I don't know WHY this worked. i was editing the ad code and everything pulled up and normalized. Very weird.

    For posterity and future reference, here's what was happening.

    <hr />

    // some ad code #1 //

    Here's how it looked: http://babygotmac.com/error-before.png

    So I changed it to this:

    <hr />
    <small><u>Please feel free to visit our sponsors</u></small>

    //ad code #2 //

    And now it looks like this: http://babygotmac.com/error-after.png

    Again, not sure why that really made a difference, but it did. The only difference was that ad #1 was taller than ad #2.

    It looks fine now, but I'm still concerned that it managed to push the entire div over.

Topic Closed

This topic has been closed to new replies.

About this Topic