I am attempting to create 2 columns using an ordered list (ul
). Despite successfully adding the ul
and li's
, I am encountering issues with the column formatting. You can view the JSFiddle here. Below is the code snippet:
ul {
background-color:yellow;
-webkit-columns:2; /* Chrome, Safari, Opera */
-moz-columns:2; /* Firefox */
columns:2;
}
li {
display:inline-block;
}
<body>
<ul>
<li>
first
</li>
<li>
second
</li>
<li>
last
</li>
</ul>