Auto Nav styling

Hello again!
I am searching for solution about my problem:
I am using Auto Nav in my theme (I am converting HTML layout into C5 theme). The navigation has a similar tree:
<li class=''>

This is a menu with submenu one level depth. So I want to add styling to <li> element that contains submenu. By default every <li> element in Auto Nav has an empty style.

View Replies: View Best Answer
A3020 replied on at Permalink Reply
You can use the direct child selector:

#nav > ul li {
//general styling

#nav > ul > li {
//only toplevel li-tags

#nav li.has-dropdown ul li {
//only second level li-tags
drbiskit replied on at Permalink Best Answer Reply
Try using this super useful custom template file that jordanlev put together for the autonav block:

It adds a custom class to each li in your autonav markup - utilising the collection (page) id in each case.

Download the linked file in jordan's post, and add it here (you'll need to create a new directory if not already present):

Then put the page in edit mode, click on the auto nav block and select 'custom template' from the menu. 'list item classes' should be one of the options - select it, and save.

Then look at your generated code, find out what the class is for that li, and write out some css for it.
bryanlewis replied on at Permalink Reply
I agree with drbiskit.. Here is the link to his tutorial. I hope it helps out a bit.
ljubo replied on at Permalink Reply
Yes,That is great! Exactly what I am looking for. Thank you!!