WordPress.org

Support

Support » Themes and Templates » DIV tag problem

DIV tag problem

Viewing 12 replies - 1 through 12 (of 12 total)
  • Okay, okay, save your hair. You might not have any left soon.

    I’ll look at your site but in the meantime, I want you to go through the various CSS sections (page, header, content, sidebar, footer, etc.) and add the following attribute (don’t forget the semi-colons!):

    ...; border: solid 1px colorname; }

    In the place of colorname make each section a different color. Like page is yellow, header is green, content is red, sidebar is purple…and so on. When you view the page, you should see the colored boxes around the different section. If one of those boxes stretches down into another, there is your lost div. If it cuts off too earlier, there is a div placed in a wrong section.

    Give it a try while I looksee.

    Just on a quick glance, I have to wonder where the insideWrapper div in your header is supposed to end.

    I’m trying to trace that right now….It should be at the end either in the footer or index below the footer include…maybe. I’m still poking around.

    inside wrapper should end after the insideWrapper and before the creative commons image.

    Thanks a lot!! for your help….

    Found it. It’s in the footer. Okay, I’ve done a casual check of Link2 and it looks like all the divs are there. I would run your HMTL generated pages through a couple of validators and I bet it would find it there, if it is indeed missing from one of the pages, or you have too many.

    Having the ending DIV for the insideWrapper in the footer is bad. I’d move it to the end of the index.php page before the “include footer” tag. Just to stay clean. I hate little things like this.

    Oh, so that is it?

    ok i moved that < / div> to index.php but it didnt fix it 🙁 everything should look like link2

    thanks thanks i put in the css thing for borders

    ok see i put in the closing div tag in where the insideWrapper should end. but then if u look at a post page (link2) its broken see my delimma?

    aargh u are right i might not have enough hair… hehe

    Okay, run it through some validators…did you? That should help figure it out. Run the broken stuff.

    Oh, I got it. On your unbroke page:

    <div class="cent">

    Doesn’t seem to have a closing tag. Check that for me to make sure. It validated but I couldn’t find a closing tag for that.

    For the broke page:

    Line 205, column 5: end tag for element "div" which is not open </div>

    Is what I got from the validator. If you don’t have an open tag, don’t but throwing one in there because you think you need it.

    Does this help?

    you know wht that is it

    <div class=”cent”><!–more–></div>

    that post looks like that but that </div> after the post is missing on the generated page!!!

    arrgh figured it out!
    why would wordpress do that?

    i changed <div class=”cent”><!–more–></div>
    <p class=”cent”><!–more–>

    that fixed it thanks a lot guys btw which validators did u run it through???

    thanks a lot!!!

    yup that was it that </div> after the <!–more–> was eaten up!

    Thanks a lot people!!!!!!!!!!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘DIV tag problem’ is closed to new replies.
Skip to toolbar