All my post have a div clear:both tag at the beginning so that forces the body text to start after the Google Adsense block. The ad units no longer blend with the body text.
Did anyone else notice this ? <div style="clear:both;"></div>
My Google Adsense earnings are bound to drop due to this. Looking for a CSS hack or workaround.
Find this article at: http://labnol.blogspot.com/2005/06/blogger-template-inserting-div-clear.html
web: http://www.labnol.org/ email: amit@labnol.org


Reader Comments
Yeah i Noticed it too..
But the strange thing is that not on all my blogs..
[svartling@home.se]
Written on 26/6/05 9:51 PM
I'm also having this problem. I've written Blogger about it. Pain in the ass.
Written on 27/6/05 8:12 PM
Just noticed this yesterday. They're totally blowing my design. Seems to only affect Firefox. Sent them an email, hasn't been answered of course.
Stefan, bet if you republish you unaffected blogs it will crop up there too.
Written on 27/6/05 9:46 PM
yes i have noticed this all my posts since last week now have this div clear:both at the start and the text no longe renders inline on my pages i have to now go and somehow fix my html so it renders properly.
i love blogger but i wish they would stop fucking with working templates people are using, im using a customised template i made up, if i want to put freaking div clear tags in i will.
im almost at a point of writing a blogger unsanitiser which is a bit of perl that sits on my linux box which i run after i push publish that goes and fixes up all the stupid things blogger does out of my control.
[labnol@matt.matt.name]
Written on 28/6/05 4:47 AM
quick fix
.Post div { clear: none !important; }
[labnol@matt.matt.name]
Written on 28/6/05 4:49 AM
Yes I just noticed this too and have complained to no effect as well. I don't think they tested it well, just on a few of their newer templates, but not for example, the Bluebird template that floats a div to the top right. All their newer templates have a right hand column that extends to the bottom of the page and is unaffected by the clear attribute.
Thankfully the fix by Matt works great, just don't try putting a comment above it (so I'd remember to remove it later). I guess you can't have comments in the style section of an HTML page. Thanks Matt for being a CSS guru! [bloggently@longdarktechtime.com]
Written on 28/6/05 6:31 AM