Here is the HTML code I am working with:
<div style="column-count: 3;">
<ul>
<li><h3>Education<h3></li>
<li><a>Education 1</a></li>
<li><a>Education 2</a></li>
<li><a>Education 3</a></li>
</ul>
<ul>
<li><h3>Careers<h3></li>
<li><a>Careers1</a></li>
<li><a>Careers2</a></li>
<li><a>Careers3</a></li>
</ul>
<ul>
<li><h3>Legal<h3></li>
<li><a>Legal</a></li>
<li><a>Legal</a></li>
<li><a>Legal</a></li>
</ul>
</div>
The code above organizes the 'ul' elements into 3 columns. The image linked below helps visualize this setup:
https://i.sstatic.net/rikph.jpg
In the screenshot, we see that 'Education' appears in the bottom of the first column, causing its anchor tags to shift to the next column. To address this issue and move 'Education' to the next column when needed, is there a CSS or JavaScript solution available?