why should I cater for them…
11:56 am on the 30th of May, 2005Strange, the website for my Mum’s vet surgery is misbehaving in ie at small resolutions.
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…
May 30th, 2005 at 5:56 pm on the 30th of May, 2005
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.
May 30th, 2005 at 8:33 pm on the 30th of May, 2005
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?
May 31st, 2005 at 12:15 pm on the 31st of May, 2005
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.
May 31st, 2005 at 2:35 pm on the 31st of May, 2005
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!
May 31st, 2005 at 2:43 pm on the 31st of May, 2005
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!
Trackbacks/Pings
Leave a Reply