This is my CSS:
ul{
overflow:hidden;
}
li{
display:inline-block;
}
Here is my HTML:
<ul>
<li>a</li>
<li>b</li>
<li>c</li>
<li>d</li>
<li>e</li>
<li>f</li>
<li>g</li>
</ul>
I am looking to align all my li items in one line. Currently, when 3 or 4 li's fill the first line on my body, they go to the second line. I want them to be on one line and have everything after the first line filled hidden with 'overflow:hidden'.
For Example:
// Note: each li holds sentences not just one letter
Current Output:
a b c d
e f g
Desired Output:
a b c d e f //all of them in 1 line and the rest are hidden using 'overflow:hidden'