2005-06-24

What's with the clear: both, Blogger.com?

Since a few days Blogger.com has added a div at the beginning and the end of each <$BlogItemBody$>. Prefix:

<div style="clear:both;"></div>

Suffix:

<div style="clear:both; padding-bottom: 0.25em;"></div>

Thanks for messing my blogs up, Blogger.com. There is a way to fix quirks because of this. My <$BlogItemBody$> is inside a <div class="body"> (which is standard I think). The fix is a simple CSS rule:

div.body div {
  display: none;
}

Update 2005-06-30: You can prevent the extra styled div's by setting the 'Enable float alignment' option to 'No' in your settings. Thanks to Pogenwurst for pointing this out.

3 comments:

Anonymous said...

Thanks for your comment. Unfortunately, I'm concerned with completely removing the tags to keep my blog conforming with W3C standards. Thanks anyway though.

Anonymous said...

Blogger Buzz has a fix to completely remove the code:
http://buzz.blogger.com/2005/06/layout-solution_29.html

Anonymous said...

Aha, so that was it messing up some of my posts...
Thx