Grid Auto Fr

GridAutoFr is the opposite of GridFrAuto. It puts the auto column before the fr column.


Auto then Fr

GridAutoFr creates a two column grid with auto and fr.

index.html
<div class="GridAutoFr">
<div> ... </div>
<div> ... </div>
</div>

Fixed-width sidebar

Add a width to the auto grid item to create a fixed-width sidebar.

index.html
<div class="GridAutoFr">
<div class="w-[10rem]"> ... </div>
<div> ... </div>
</div>

Combine with SingleCol to make responsive layouts

By itself, GridAutoFr is not responsive-friendly, but you can combine it with SingleCol on smaller breakpoints to make great responsive layouts.

index.html
<div class="SingleCol md:GridAutoFr">
<div></div>
<div class="md:w-[10rem]"></div>
</div>
Resize to see this work!