I have an unordered list <ul><li>
I want it to be horizontal, not vertical, but when I put it to stay in line with display: inline-block
my indicative "poles" are gone!
Notice that the only thing I changed was to keep the text horizontal, then the list decoration disappeared, when the list is vertical the formatting is correct. Why does it happen? Can you solve this with CSS?
.linha li {
display: inline-block;
}
<ul class="linha">
<li>item 1</li>
<li>item 2</li>
<li>item 3</li>
<li>item 4</li>
<li>item 5</li>
<li>item 6</li>
<li>item 7</li>
<li>item 8</li>
<li>item 9</li>
<li>item 10</li>
<li>item 11</li>
<li>item 12</li>
</ul>
<ul>
<li>item 1</li>
<li>item 2</li>
<li>item 3</li>
<li>item 4</li>
<li>item 5</li>
<li>item 6</li>
<li>item 7</li>
<li>item 8</li>
<li>item 9</li>
<li>item 10</li>
<li>item 11</li>
<li>item 12</li>
</ul>