Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
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
Old 08-09-2012, 06:16 PM   PM User | #2
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,600
Thanks: 5
Thanked 865 Times in 842 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
Quote:
Originally Posted by jarv View Post
is there a way around this?
Yes, put it inside the <li>.
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Reply

Bookmarks

Tags
child, code, validating

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:05 AM.


Advertisement
Log in to turn off these ads.