Imagine having this list:
<ul>
<li>item1</li>
<li>item2</li>
<li>item3</li>
<li>item4</li>
<li>item5</li>
<li>item6</li>
<li>item7</li>
<li>item8</li>
</ul>
How can I make it display like this on the webpage:
item1 item2 item3
item4 item5 item6
item7 item8
What's the best approach for achieving this? Can it be done easily with CSS or is there a special PHP trick?
I've received some suggestions, but they all seem similar to my own solution. However, it needs to fit within 870px and follow a specific order while also being responsive due to using bootstrap. Any help would be greatly appreciated. Thank you.