WordPress.org

Ready to get started?Download WordPress

Forums

HELP! Not posting right! Not reading my CSS specs (6 posts)

  1. becky01
    Member
    Posted 8 years ago #

    I thought I had this straightened out. It looked fine, my template that is. But then I added a new post just to test it out and it totally ruined the layout and did something funny to my margins. I can pinpoint the problem using view source on a browser in the html, but I can't in the php. Will someone help me out please? My blog is at http://www.runjeeta.com/dg
    The php code is as follows:
    <div id="container"> is what keeps everything within the white area on the page, and <div class="contentmargin"> is what keeps the text and content where I want it.
    Header:
    [edit: code moved to http://pastebin.com/642968 - mod]

    ~Thank you for any help

  2. TechGnome
    Moderator
    Posted 8 years ago #

    In the future, please post long code such as this in the http://pastebin.com.

    I've moved your code there: http://pastebin.com/642968

    -tg

  3. Kafkaesqui

    Posted 8 years ago #

    You don't close <div class="contentmargin"> between posts. If this is a container for all posts, it belongs outside (above) The Loop. If for individual posts, you have to provide a closing </div> before the end of The Loop.

  4. becky01
    Member
    Posted 8 years ago #

    Ok sorry, I didn't know there was a special place for code to be put. Will remember that in the future. Also, Kafaesqui, the <div class="content margin"> is a container for all posts, no matter what. So thanks for letting me know if belongs above the loop. I"ll read up on that and re-tool it. I thought that I had all of the loop inside it already, so obviously i have some things to learn. Thanks for the tip. Since it belongs above the loop , does that imply that the div ends after the loop does?

    ~Thank you much
    Becky01

  5. Kafkaesqui

    Posted 8 years ago #

    "Since it belongs above the loop , does that imply that the div ends after the loop does?"

    Oh, most definitely. :)

  6. becky01
    Member
    Posted 8 years ago #

    Sweet! It worked. Thanks for the help. Oddly I have a new problem now to sort out. My post titles are wrapping around to the post before them it says things like "posted in Uncatagorized (I've specified no catagories yet) Hello World! (title of next post). Weirdness. I think I am going to make a new class to add margin properties to the part of the php that generates the "Posted in such and such catagory bit." Although, it wasn't wrapping wierdly like that untill I added the third test post.
    ~Becky01

Topic Closed

This topic has been closed to new replies.

About this Topic