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.

4 comments:

pogenwurst 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.

pogenwurst said...

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

Jasper said...

Thanks!

Hinderik said...

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