Post the exact html mark up you want to achieve and insted of the page titles put in level 1 ,level 2, and level 3 for all the links to represent where they are in the structure. is this what you want? <div id="blah"> <ul> <li><A>level 1 </a> <ul> <li><A>level 2</a> <ul> <li><a>level 3 </a></li> </ul> </li> </ul> </li> <u/l> </div>