Answer the question
In order to leave comments, you need to log in
How to sort the menu?
The question is how to align the menu. Building fences from JS is not a hunt, I'm looking for a more elegant solution.
There is a menu
There is a noobuser who sits and pushes items from the admin panel there. At the output, we get a conditional "array" of the view menu:
<!-- Первый уровень -->
<ul>
<li><a href="#">Жирный заголовок</a>
<!-- второй уровень -->
<ul>
<li><a href="#">Дочерний пункт</a></li>
<li><a href="#">Дочерний пункт</a></li>
<li><a href="#">Дочерний пункт</a></li>
</ul>
</li>
<li><a href="#">Жирный заголовок</a>
<ul>
<li><a href="#">Дочерний пункт</a></li>
<li><a href="#">Дочерний пункт</a></li>
<li><a href="#">Дочерний пункт</a></li>
</ul>
</li>
</ul>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question