My menu is exceeding the boundaries of its container. How can I make sure the overflowing content moves to a new line while staying within the parent element?
Here is the structure of my HTML:
<div class="product-menu" style="display: flex;">
<div class="kolom">
<h2>Woonkamer</h2>
<ul>
<li><a href="woonkamer/gordijnen">Gordijnen</a></li>
<li><a href="woonkamer/zitzak">Zitzak</a></li>
<li><a href="woonkamer/bootstickers">Bootstickers</a></li>
<li><a href="woonkamer/plafondoek">Plafondoek</a></li>
...
</div>
I am using display flex to arrange the columns horizontally, but they are not moving to a new line when they exceed the boundaries of the parent product-menu
div.
Any suggestions on how to solve this issue?