Weblog

AD Weblog Page Image
Assigned image

Invalid code, fixed!

Wednesday, April 18, 2007

It was, in-fact, the way that Blogger had created some of its XHTML code. Disabling an option inside the Blogger configuration seemed to fix this problem.

UPDATED:
In order for Blogger to get rid of the invalid <div style="clear: both;" /> you need to go to: Settings > Formatting > Enable float alignment and set it to "NO." The reason this is coming up invalid, in my situation, is because the posts are entered inside a paragraph tag, where XHTML does not allow a div clear element, apparently. I suppose if I had images inside (which is what this option is there to handle), it wouldn't have any problems, though I can not be sure.


2 Comments:

At April 18, 2007 11:46 AM , Anonymous Anonymous said...

Can i know which option to disable? Thanks.

At April 18, 2007 12:39 PM , Blogger Shane H said...

Hi, I've updated the blog for the solution that fixed my particular problem. I'm not saying this will fix all invalid code, but it should take care of the invalid div clears inside the posts.

Post a comment


<< Home

Powered by Blogger
Blogger

Top

sour teadeceptive magicgawdsvalid xhtml 1.0valid css