5
I have an unordered list <ul><li>
I wish it to stay horizontal, not vertical, but when I put it to stay in line with display: inline-block
my indicative "balls" are gone!
Note that the only thing I changed was to stay the text horizontal, then the list decoration disappeared, when the list is vertical the formatting is correct. Why does this happen? There are ways to 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>
@hugocsi managed to solve your problem? my solution help you?
– Renan
@Renanosorio yes his answer met me in parts, but what really happens is how Vitor spoke to LI by default is
display: list-item
that already comes with the balls, when I changed toinline-block
she lost the balls. That was the problem indeed, recreating the balls was not really the problem understand, but rather knowing why they disappeared rss– hugocsl
@hugocsi Ahh Sam, I understand now. I had understood the question differently, but that’s okay. vlw.
– Renan
@Good Renanosorio my young! But let the answer because it can serve other people in different situations!
– hugocsl