I am trying to break a UL with nested UL in the LI in to two columns and while I have been able to use
.grid-list {
-webkit-column-count: 2;
-moz-column-count: 2;
column-count: 3;
}
but the nested UL's are getting broken (some in column 1 and some in column 2 depending on where the break is) and I would like to keep them together. If you look in the screenshot below you can see 'Planning and Zoning' is at the bottom and I would like to have it at the top of the next column if possible. The UL that I'm using is below. Any idea how to do this with some jQuery or simple css? It's a challenge!
Here is my code:
<div class="mega-menu">
<ul class="sub-nav">
<li>
<a href="#" id="Village Council" target="">Village Council</a>
<ul>
<li>
<a href="#" id="Agendas & Minutes" target="">Agendas & Minutes</a>
</li>
</ul>
</li>
<li>
<a href="#" id="Boards" target="">Boards</a>
<ul>
<li>
<a href="#" id="Planning Board" target="">Planning Board</a>
</li>
<li>
<a href="#" id="Board of Adjustment" target="">Board of Adjustment</a>
</li>
<li>
<a href="#" id="Parks, Recreation, and Greenways Board" target="">Parks, Recreation, and Greenways Board</a>
</li>
<li>
<a href="#" id="Committees" target="">Committees</a>
</li>
</ul>
</li>
<li>
<a href="#" id="Ordinances" target="">Ordinances</a>
</li>
<li>
<a href="#" id="Finance & Tax" target="">Finance & Tax</a>
<ul>
<li>
<a href="#" id="Budgets & Reports" target="">Budgets & Reports</a>
</li>
<li>
<a href="#" id="Taxes" target="">Taxes</a>
</li>
<li>
<a href="#" id="Contact Finance" target="">Contact Finance</a>
</li>
</ul>
</li>
<li>
<a href="#" id="Planning & Zoning" target="">Planning & Zoning</a>
<ul>
<li>
<a href="#" id="Maps" target="">Maps</a>
</li>
<li>
<a href="#" id="Land Use" target="">Land Use</a>
</li>
<li>
<a href="#" id="Permitting" target="">Permitting</a>
</li>
<li>
<a href="#" id="Ordinances" target="">Ordinances</a>
</li>
<li>
<a href="#" id="Projects" target="">Projects</a>
</li>
</ul>
</li>
<li>
<a href="#" id="Public Safety" target="">Public Safety</a>
</li>
<li>
<a href="#" id="Parks & Recreation" target="">Parks & Recreation</a>
<ul>
<li>
<a href="#" id="Marvin Efird Park" target="">Marvin Efird Park</a>
</li>
<li>
<a href="#" id="Reserve the Barn" target="">Reserve the Barn</a>
</li>
<li>
<a href="#" id="Trails & Greenways" target="">Trails & Greenways</a>
</li>
</ul>
</li>
<li>
<a href="#" id="Transportation" target="">Transportation</a>
</li>
<li>
<a href="#" id="Staff Directory" target="">Staff Directory</a>
</li>
</ul>
</div>