foolfillment: the blog


why should I cater for them…

11:56 am on the 30th of May, 2005

Strange, the website for my Mum’s vet surgery is misbehaving in ie at small resolutions.why would it do this?

The last few characters of the main text is repeated outside of the box. The text is only in the source once, it works fine at anything above 800×600, as long as the sidebar is closed. I can’t work out why it’s doing this…

Comments

  1. Lyle

    Try putting the contents of the div inside a tag.

    So you’d have ”
    <div id=”content”> (and poss take out the “class=body” too)
    <p>
    text
    </p>
    </div>

    Might do it - I’m not certain, but that’s my first thought on it, anyway.

  2. stuart

    Thanks for the suggestion.

    I tried it and it almost worked, it got rid of one or two of the repeated characters but not them all. To get it to work I had to add in three <p> tags, which made the HTML invalid of course.

    I’ve left it with an extra three line breaks at the end which hides the symptom but doesn’t get rid of the cause. Hmm, any other ideas?

  3. Lyle

    Hmm, well, personally I’d get rid of all the <br> (and, if we’re being picky and XHTMLy they should all be <br /> but that’s picky for the moment) within the text, and use <p>s for each par of text instead.

    I don’t know if that’ll render it all any differently, but for cleanliness of code (and it should validate at that point) it’s generally better and easier to read than using br’s all over the gaff.

    Other than that, I’ll have a furkle with it tonight, and see what I can come up with.

  4. stuart

    I think I’ve cracked it, there were bodies all over the place - it seems like it was all caused by really clumsy styling by me.

    Surrounding the text in <p> did the trick but not before I removed three unneccessary class=”body”s
    There were bodies all over the place, and by taking them all out and using a specific style for p it all seems to be tidied up. Still got to go through the whole site and fix it but at least now I know how to.

    Thanks Lyle!

  5. Lyle

    No worries. I did kind of mention taking out the “class=body” in the first comment, but wasn’t sure if it was doing anything, as I hadn’t looked in the CSS source at that point.

    Still, glad it’s all sorted!

  6. Trackbacks/Pings

      Leave a Reply

      Add a link to your comment