I have a list that is not in order:
<ul>
<li>Parent-1
<ul>
<li>Child-1</li>
<li>Child-2</li>
<li>Child-3</li>
</ul>
</li>
<li>Parent-2
<ul>
<li>Child-4</li>
<li>Child-5</li>
</ul>
</li>
<li>Parent-3
<ul>
<li>Child-6</li>
</ul>
</li>
</ul>
My goal is to show these items in a single line like this:
Parent-1 | Child-1 | Child-2 | Child-3 | Parent-2 | Child-4 | Child-5 | Parent-3 | Child-6
How can I achieve this using CSS or possibly with the assistance of jQuery? It seems simple, but I am having trouble figuring it out.