I'm using tailwind but my question pertains more to flexbox. I have these 4 'nodes' that I want to wrap in columns, however they are not wrapping when the width is over. I don't want the page to exceed the height of the page. Here is my current attempt:
<link href="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.0.2/tailwind.min.css" rel="stylesheet"/>
<div class="flex flex-col bg-blue-100 h-screen">
<h1 class="text-center text-3xl bg-blue-200 py-2">My Header</h1>
<div class="flex-auto flex flex-col flex-wrap">
<div class="bg-blue-300 border-2 border-black h-16 w-12"></div>
<div class="bg-blue-300 border-2 border-black h-16 w-12"></div>
<div class="bg-blue-300 border-2 border-black h-16 w-12"></div>
<div class="bg-blue-300 border-2 border-black h-16 w-12"></div>
</div>
</div>
My intended goal is for layout to look something similar to this:
I know this problem might be related due to the fact that the browser doesn't know when wrapping starts to happen, but I am still yet to find a solution that makes sense to me.