Support » Fixing WordPress » HELP! Not posting right! Not reading my CSS specs

  • 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

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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

    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.

    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

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

    Oh, most definitely. :)

    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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘HELP! Not posting right! Not reading my CSS specs’ is closed to new replies.