Grid Template Rows
Set the rows for a grid layout.
Widely available
This feature is well established and works across many devices and browser versions.
Chrome
Edge
Firefox
Safari
Usage
Define the rows of a grid layout.
A
B
C
D
E
F
G
H
<div class="o-auto p-r"> <div class="d-g g-4 gaf-c gtr-3 c-white ta-c"> <div class="p-4 bg-indigo">A</div> <div class="p-4 bg-indigo">B</div> <div class="p-4 bg-indigo">C</div> <div class="p-4 bg-indigo">D</div> <div class="p-4 bg-indigo">E</div> <div class="p-4 bg-indigo">F</div> <div class="p-4 bg-indigo">G</div> <div class="p-4 bg-indigo">H</div> </div></div>Responsiveness
Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.
Target viewport sizes with breakpoint prefixes.
sm:gtr-*Small≥640px
md:gtr-*Medium≥768px
lg:gtr-*Large≥1024px
xxl:gtr-*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:gtr-*