Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Banned
    Join Date
    Mar 2007
    Posts
    1,523
    Thanks
    116
    Thanked 0 Times in 0 Posts

    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>

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,677
    Thanks
    6
    Thanked 1,008 Times in 981 Posts
    Quote Originally Posted by jarv View Post
    is there a way around this?
    Yes, put it inside the <li>.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •