Blogger Template Glitch
July 3, 2006 7:53 PM
Subscribe
I have a template/display glitch which is driving my html-ignorant frontal lobes a bit beserko.
My blogger site
[yeah, yeah...perhaps that's 1/2 the problem] is image intensive and in the last couple of weeks I've been choosing 'large' as the display choice when using the automagic blogger uploader-of-image thingy. I just mention this because I believe that it
may have been displaying some images wider than the 500px width specified in the template*, although they all seem under that on the front page at the mo'. [* now 510]
The other day someone wrote to say that the sidebar was displaying at the foot of the page in IE6 (FF was ok). I can't be certain when this started.
So I tweaked around a bit, widening the page slightly and narrowing the translator button and things seemed ok.
But for reasons that completely escape me, the googleads sidebar text box now won't display on the main page on either IE or FF and the footer googlead box doesn't display in FF and IE on Win but I'm told it's ok with FF on a Mac. However, everything displays properly for individual entry pages.
I tried moving and replacing the googleads code but there was no change.
Any ideas? Did I say that I was pretty well html-ignorant? So the lay version would be appreciated. [
link]
posted by peacay to computers & internet (4 comments total)
510 px on your main div won't be enough if you (for instance) decided to drop a 500 px image into a blockquote: the blockquote is indented and you have a 1px border and a 4px padding on your images, so that puts it at 510 px + indentation. The best thing (as you've discovered) is not to overfill your divs, but to make sure that all of your images are under 500 px.
You can also add an overflow: declaration on the main div, which tells your browser what to do when the content is wider than the div allows. I'd recommend overflow:hidden; which seems to work well in both FF 1.5/win2000 and IE 5.0/win2000.
The modified section of the code would be like so:
#main {
width:510px;
float:left;
overflow:hidden;
}
Also, as a bonus [unsolicited] tip: if you put height and width declarations on your images, the browser will know how much space to allocate for them before they're done downloading, which will prevent the browser window from redrawing constantly as the images finish downloading. :-)
Neat site, btw.
posted by Tuwa at 8:51 PM on July 3, 2006