It is possible to create a two column appearance in a list based on a data attribute of an element? My HTML which can't really be modified into two lists (even using JS breaks other functionality on the page) looks like:
<ul>
<li data-list="general_results">general text1</li>
<li data-list="general_results">general text2</li>
<li data-list="general_results">general text3</li>
<li data-list="category_results">category text1</li>
<li data-list="category_results">category text2</li>
<li data-list="category_results">category text3</li>
<li data-list="category_results">category text4</li>
</ul>
I want the output to appear as:
general text1 category text1 general text2 category text2 general text3 category text3 category text4
It is same to assume that the will always have the elements grouped in order.
I'm not sure how to achieve this with the desired output. Floating places elements in a left to right fashion instead of a vertical layout. Any ideas?