Jump to content
Sign in to follow this  
pmurphy

4.24 W3 Validation issue

Recommended Posts

pmurphy

Hey guys, I recently upgraded to 4.24 and started failing validation on W3. The site is www.ganttcharttemplate.com and the code that is throwing the error is this:

<ul id="menu-main" class="mnav dropdown fix">
				  	<li class="page_item page-item-2 current_page_item">Gantt Chart Template
								<style type="text/css">#nav ul#menu-main-nav,#nav ul.mnav{width:890px;}</style>[/code]

The error is Line 177, Column 35: document type does not allow element "style" here. Any ideas on how I can fix this one? Thanks!

Share this post


Link to post
Share on other sites
bryan-hadaway

I'll forward as a possible mistake, but it may also be important for usability even if it "breaks" validation. Thanks, Bryan

Share this post


Link to post
Share on other sites
cmunns

in your _nav.php you can get rid of that line causing the validation error. It certainly doesn't need to be there...the correct code would be...then the CSS could be moved to the stylesheet if you need the nav full-width Here is what the bit of code at the end of _nav.php would look like ` <?php if(!pagelines('hidesearch')):?> <?php get_template_part ('library/_searchform'); ?> <?php endif;?>

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×