I've made an attempt here. However, it has two problems:
- IE
- Last element of a list being a sublist
Is there a better way of doing this?
I've made an attempt here. However, it has two problems:
Is there a better way of doing this?
You didn't really go into detail on what your criteria are, but from what you have said, I'd suggest taking a look at SlickMap CSS.
Update: Got it! I just remembered where I'd seen what you're looking for:
jsTree is a jQuery plugin which creates a tree widget with the kind of styling you want and uses <ul>
internally to represent it.