How can I split a single/one list (ol
or ul
) into multiple columns?
I saw that css columns
property doesn't work: unfortunately, the new column is not interpreted as a new line, so the number (ol
) or bullet (ul
) of the item does not appear in the new column.
ol,
ul {
columns: 3;
}
<ol>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
<li>6</li>
</ol>
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
<li>6</li>
</ul>