Hi,
I need to insert a ul inside of another ul, but it should not be inside an li. Let me show.
Notice that the .sub ul is not inside the li. Is this valid XHTML or not?Code:<ul> <li><a href="#">Overview</a></li> <li><a href="#">Subscriptions</a></li> <ul class="sub"> <li><a href="#">Daily Health Tips</a></li> <li><a href="#">Daily Recipes</a></li> <li><a href="#">Daily Inspirations</a></li> </ul> </ul>
It displays fine in all major browsers, except IE. In IE the .sub ul is just collapsed. That's why I was wondering if it was valid xhtml, as I have tried almost every rule in the book to get it to display.
I know one can put it like this:
But I have some display problems with this. Was just wondering.Code:<ul> <li><a href="#">Overview</a></li> <li>Subscriptions <ul class="sub"> <li><a href="#">Daily Health Tips</a></li> <li><a href="#">Daily Recipes</a></li> <li><a href="#">Daily Inspirations</a></li> </ul> </li> </ul>
Thanks





. 


Bookmarks