homepage Welcome to WebmasterWorld Guest from 54.197.215.146
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
can't get wordpress to validate
mgmuranaka




msg:4294973
 4:16 pm on Apr 10, 2011 (gmt 0)

[validator.w3.org...]



I'm fairly certain that the reason it's not validating is because there is a div within a 'p' tag, but even so I can't figure out how to get rid of the 'p' tag. Any thoughts would be greatly appreciated!

 

mbabuskov




msg:4295107
 9:52 pm on Apr 10, 2011 (gmt 0)

IMHO, being strict with w3c validation is overestimated. It's good to run your site through validator to fix some problems you might have not noticed, but using any complex combination of technologies and trying to make your website fast is bound to get you w3c invalid status sooner or later. The only thing important is that you know why the problem is there and what's its impact on page rendering. Heck, google.com homepage has 39 errors.

rocknbil




msg:4295452
 4:11 pm on Apr 11, 2011 (gmt 0)

Can you change the gallery div from a div to a span? That would "fix" it. You should be able to locate the source code somewhere in your theme. You can assign display: block to the span in CSS to emulate div behavior.

Invalid code can trigger Quirks mode. Quirks mode can cause browser inconsistencies which leads to ( <choke, gag> ) IE conditionals and all sorts of unnecessary tricks. One error away . . . pretty close. :-)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved