View Single Post
Old 08-09-2012, 05:37 PM   PM User | #1
jarv
Banned

 
Join Date: Mar 2007
Posts: 1,523
Thanks: 116
Thanked 0 Times in 0 Posts
jarv can only hope to improve
Question validating website - div not allowed as a child in UL

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:
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>
jarv is offline   Reply With Quote