Grid Auto Columns
Set the size of implicitly-created grid columns.
Widely available
This feature is well established and works across many devices and browser versions.
Chrome
Edge
Firefox
Safari
Usage
Auto
Size columns based on the content and available space.
Sphinx of black quartz, judge my vow.
B
C
<div class="d-g gac-auto g-4 gtr-auto"> <div class="d-f ai-c jc-c p-4 bg-indigo c-white">Sphinx of black quartz, judge my vow.</div> <div class="d-f ai-c jc-c p-4 bg-indigo-8 c-indigo-5">B</div> <div class="d-f ai-c jc-c p-4 bg-indigo-8 c-indigo-5">C</div></div>Min Content
Size columns to the smallest possible width without overflowing.
Sphinx of black quartz, judge my vow.
B
C
<div class="d-g gac-min g-4 gtr-auto"> <div class="d-f ai-c jc-c p-4 bg-indigo c-white">Sphinx of black quartz, judge my vow.</div> <div class="d-f ai-c jc-c p-4 bg-indigo-8 c-indigo-5">B</div> <div class="d-f ai-c jc-c p-4 bg-indigo-8 c-indigo-5">C</div></div>Max Content
Size columns to the largest possible width based on their content.
Sphinx of black quartz, judge my vow.
B
C
<div class="d-g gac-max g-4 gtr-auto"> <div class="d-f ai-c jc-c p-4 bg-indigo c-white">Sphinx of black quartz, judge my vow.</div> <div class="d-f ai-c jc-c p-4 bg-indigo-8 c-indigo-5">B</div> <div class="d-f ai-c jc-c p-4 bg-indigo-8 c-indigo-5">C</div></div>Responsiveness
Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.
Target viewport sizes with breakpoint prefixes.
sm:gac-*Small≥640px
md:gac-*Medium≥768px
lg:gac-*Large≥1024px
xxl:gac-*Extra Large≥1536px
Hover State
Apply styles conditionally on hover using the h: prefix.
Add the h: prefix to apply styles only when the user hovers over the element.
Syntax:
h:gac-*Negative Values
Use negative variants to apply negative grid auto column values.
Use the -- syntax to apply negative numeric values.
Syntax:
gac--*