|
Date: 2/22/2007 3:46 pm · Subject: Re: Navigation Unordered List (XHTML STRICT) · Rating: -1
Without touching on the template logic building a valid nesting unordered list works pretty simply. <ul class="indentedNav"> <li><a>Element 1</a> <ul> <li><a>Nested Element 1<a/></li> <li><a>Nested Element 2</a></li> </ul> </li> <li><a>Element 2</a></li> </ul> For it to validate xhtml 1.0 strict you just need to have the nested UL inside the LI. Then you can access it through the descendant selector: .indentedNav li {#style info#} .indentedNav li ul li {#style info#} And so on. Though that does get sticky as the second rule will be applied to all list items from the second level on. You can fix that with continuing levels of specificity or through the typical id or class means. I may have a good example of a tiered navigation template logic but it's from 6.7 and won't validate but it could be a good start. Just let me know if that would help and I'll post it.
--- (Edited on 2/22/2007 3:46 pm [GMT-0600] by philadev) ---
|