I've encountered an issue with my CSS where multiple ul sections are automatically split into three columns, but the li content is breaking and moving to the next column individually. I want the entire ul to move to the next column as a whole. Here's a screenshot of the problem.
The desired result should look like this.
Here's my HTML code:
<div class="columnsmulti">
<ul>
<li>Lorem Ipsum</li>
<li>Lorem Ipsum</li>
<li>Lorem Ipsum</li>
<li>Lorem Ipsum</li>
<li>Lorem Ipsum</li>
<li>Lorem Ipsum</li>
<li>Lorem Ipsum</li>
</ul>
<ul>
<li>Lorem Ipsum123</li>
<li>Lorem Ipsum123</li>
</ul>
<ul>
<li>Lorem Ipsum456</li>
<li>Lorem Ipsum456</li>
<li>Lorem Ipsum456</li>
</ul>
</div>
And here's my CSS:
.columnsmulti {
-moz-column-count: 3;
-moz-column-gap: 10px;
-moz-column-rule: 3px double #666;
-webkit-column-count: 3;
-webkit-column-gap: 10px;
-webkit-column-rule: 3px double #666;
column-count: 3;
column-gap: 10px;
column-rule: 3px double #666;
}
Any ideas on how to achieve this?