Auto then Fr
grid-auto-fr
creates a two column grid with auto
and fr
.
<div class="grid-auto-fr"> <div> ... </div> <div> ... </div></div>
Make a fixed-width sidebar easily
Add a width
to the auto
grid item to create a fixed-width sidebar.
<div class="grid-auto-fr"> <div class="w-[10rem]"> ... </div> <div> ... </div></div>
Resize to see this work!
Sidebar
Content
Create responsive layouts by combining this with vertical
grid-fr-auto
is not responsive-friendly by itself, but you can combine it with vertical
on smaller breakpoints to make great responsive layouts.
<div class="vertical md:grid-auto-fr"> <div></div> <div class="md:w-[10rem]"></div></div>
Resize to see this work!
Sidebar
Content