...

View Full Version : validating website - div not allowed as a child in UL



jarv
08-09-2012, 05:37 PM
Please help, I get the following error when trying to validate my website:

Element div not allowed as child of element ul in this context. (Suppressing further errors from this subtree.)


is there a way around this?


here is my code:


<li><a class='fancybox title' href='#strategyinline_$j' title='$strategyicontext'><img src='$strategyhref' alt='' /></a></li>
<div id='strategyinline_$j' style='display:none;width:500px;'>
<h2>$strategyicontext</h2>

<p>
<img src='$strategyhref' alt='' />
&nbsp;
<a href='javascript:$.fancybox.close();'>Close</a>
</p>
<p>
$strategydescription
</p>
</div>

VIPStephan
08-09-2012, 06:16 PM
is there a way around this?

Yes, put it inside the <li>.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum