Widely available
This feature is well established and works across many devices and browser versions.
Chrome
Edge
Firefox
Safari
fg-0flex-grow: 0;fg-1flex-grow: 1;fg-2flex-grow: 2;fg-3flex-grow: 3;fg-4flex-grow: 4;fg-5flex-grow: 5;fg-6flex-grow: 6;fg-7flex-grow: 7;fg-8flex-grow: 8;Responsiveness
Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.
Target viewport sizes with breakpoint prefixes.
@sm:fg-(value)Small≥640px
@md:fg-(value)Medium≥768px
@lg:fg-(value)Large≥1024px
@xxl:fg-(value)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:fg-(value)Negative Values
Use negative variants to apply negative flex grow values.
Use the -- syntax to apply negative numeric values.
Syntax:
fg--(value)