I have an unsorted list which I want do display in a tile-like style using CSS. This is my list:
<ul>
<li>Area 1</li>
<ul>
<li><a href="#">Topic 1</a></li>
<li><a href="#">Topic 2</a></li>
<li><a href="#">Topic 3</a></li>
<li><a href="#">Topic 4</a></li>
</ul>
<li>Area 2</li>
<ul>
<li><a href="#">Topic 5</a></li>
<li><a href="#">Topic 6</a></li>
</ul>
</ul>
This is the needed Output: Unfortunately I cannot post images here (due to my low reputation).
+---------------------------+
| Area 1 |
+---------------------------+
+-------+ +-------+ +-------+
|Topic 1| |Topic 2| |Topic 3|
+-------+ +-------+ +-------+
+-------+
|Topic 4|
+-------+
+---------------------------+
| Area 2 |
+---------------------------+
+-------+ +-------+
|Topic 5| |Topic 6|
+-------+ +-------+
In a first step it would be enough if the list is only these 2 steps deep.
I checked several approaches using CSS, but failed. Can someone help me please with the solution or an approach?
Best regards, Stefan