Each feature in detail MDN The column-gap CSS property sets the size of the gap (gutter ) between an element's columns in multi-column, flexible box, and grid layouts.
Live preview Example from MDN
column-gap: 0; column-gap: 10%; column-gap: 1em; column-gap: 20px;
#example-element {
border : 1 px solid #c5c5c5 ;
display : grid ;
grid-template-columns : 1 fr 1 fr ;
width : 200 px ;
}
#example-element > div {
background-color : rgb ( 0 0 255 / 0.2 );
border : 3 px solid blue ;
} < section class = "default-example" id = "default-example" >
< div class = "example-container" >
< div class = "transition-all" id = "example-element" >
< div >One</ div >
< div >Two</ div >
< div >Three</ div >
< div >Four</ div >
< div >Five</ div >
</ div >
</ div >
</ section > Syntax normal | <length-percentage [0,∞]> | <line-width> Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition Initial normal Applies to multi-column containers, flex containers, grid containers, and grid lanes containers Inherited no Percentages see § 2.3 Percentages In gap Properties Computed value specified keyword, else a computed <length-percentage> value Canonical order per grammar Animation type by computed value type Browser support First browser version supporting column-gap Chrome 1 Edge 12 Firefox 1.5 Safari 3 Chrome Android 18 Safari iOS 2
First version with support, from MDN browser-compat-data.
Specification ↗ MDN reference ↗
MDN The column-rule CSS shorthand property sets the width, style, and color of the lines drawn between columns in multi-column grid, flex, and multi-col layouts.
Live preview Example from MDN
column-rule: solid; column-rule: groove 0.8em teal; column-rule:
dotted thick teal,
repeat(3, dashed pink 1px, outset olive 5px); column-rule:
dotted thick teal,
repeat(auto, dashed pink 1px, dashed pink 5px),
dotted thick teal; column-rule:
dashed medium olive,
repeat(auto, dotted pink 1px),
inset orange 5px;
#example-element {
columns : 7 ;
} < section id = "default-example" >
< p id = "example-element" >
London. Lady Catnip sitting in Lincoln's Inn Hall. Nice May weather. As much
mud in the streets as if the waters had but newly retired from the face of
the earth, and it would not be great to meet a Fred, two feet long or so,
waddling like an iguana up Holborn Hill.
</ p >
</ section > Syntax <gap-rule-list> | <gap-auto-rule-list> Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition Initial see individual properties Applies to see individual properties Inherited see individual properties Percentages see individual properties Computed value see individual properties Canonical order per grammar Animation type see individual properties Longhands column-rule-width , column-rule-style , column-rule-color Browser support First browser version supporting column-rule Chrome 50 Edge 12 Firefox 52 Safari 9 Chrome Android 50 Safari iOS 9
First version with support, from MDN browser-compat-data.
Specification ↗ MDN reference ↗
MDN The column-rule-break CSS property sets the behavior for breaking column rules into segments wherever column rules intersect row gaps.
Live preview Example from MDN
column-rule-break: none; column-rule-break: normal; column-rule-break: intersection;
#example-element {
display : grid ;
grid-template-columns : repeat ( 7 , 1 fr );
column-rule : solid thick orange ;
row-rule : solid thick lavender ;
gap : 15 px ;
rule-overlap : column-over-row;
}
#example-element i {
padding : 5 px ;
} < section id = "default-example" >
< div id = "example-element" >
< i >A</ i >
< i >B</ i >
< i >C</ i >
< i >D</ i >
< i >E</ i >
< i >F</ i >
< i >G</ i >
< i >H</ i >
< i >I</ i >
< i >J</ i >
< i >K</ i >
< i >L</ i >
< i >M</ i >
< i >N</ i >
< i >O</ i >
< i >P</ i >
< i >Q</ i >
< i >R</ i >
< i >S</ i >
< i >T</ i >
< i >U</ i >
< i >V</ i >
< i >W</ i >
< i >X</ i >
< i >Y</ i >
< i >Z</ i >
</ div >
</ section > Syntax none | normal | intersection Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition Initial normal Applies to grid containers, flex containers, multicol containers, and grid lanes containers Inherited no Percentages n/a Computed value as specified Canonical order per grammar Animation type discrete Browser support First browser version supporting column-rule-break Chrome 149 Edge 149 Firefox No Safari No Chrome Android 149 Safari iOS No
First version with support, from MDN browser-compat-data.
Specification ↗ MDN reference ↗
MDN The column-rule-color CSS property defines the colors of the lines drawn between columns in multi-column grid, flex, and multi-col layouts.
Live preview Example from MDN
column-rule-color: purple; column-rule-color: rgb(48 125 222), rgb(222 48 125); column-rule-color: rgb(48 125 222), repeat(3, rgb(222 48 125)); column-rule-color: purple, repeat(auto, orange, yellow);
#example-element {
columns : 7 ;
column-rule : solid thick ;
gap : 7 px ;
} < section id = "default-example" >
< p id = "example-element" >
London. Michaelmas term lately over, and the Lord Chancellor sitting in
Lincoln's Inn Hall. Implacable November weather. As much mud in the streets
as if the waters had but newly retired from the face of the earth, and it
would not be wonderful to meet a Megalosaurus, forty feet long or so,
waddling like an elephantine lizard up Holborn Hill.
</ p >
</ section > Syntax <line-color-list> | <auto-line-color-list> Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition Initial currentcolor Applies to grid containers, flex containers, multicol containers, and grid lanes containers Inherited no Percentages n/a Computed value as specified Canonical order per grammar Animation type repeatable list, see § 4.7 Interpolation of list values. Browser support First browser version supporting column-rule-color Chrome 50 Edge 12 Firefox 52 Safari 9 Chrome Android 50 Safari iOS 9
First version with support, from MDN browser-compat-data.
Specification ↗ MDN reference ↗
No prose in the spec's definition and no MDN page yet: the spec link below is the only description.
Syntax <'column-rule-inset-cap'> [ / <'column-rule-inset-junction'> ]? Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Browser support First browser version supporting column-rule-inset Chrome 149 Edge 149 Firefox No Safari No Chrome Android 149 Safari iOS No
First version with support, from MDN browser-compat-data.
Specification ↗
MDN The column-rule-inset-cap shorthand CSS property can be used to offset the column rule segment cap endpoints at the container's start and end edges, and endpoints where the segments don't intersect other row or column segments.
Live preview Example from MDN
column-rule-inset-cap: -20px; column-rule-inset-cap: 0; column-rule-inset-cap: 1em; column-rule-inset-cap: 100%; column-rule-inset-cap: overlap-join;
#example-element {
display : grid ;
grid-template-columns : repeat ( 7 , 1 fr );
rule : solid thick rebeccapurple ;
column-rule-color : magenta ;
gap : 1 em ;
rule-overlap : column-over-row;
rule-visibility-items : between;
border : 1 px solid rebeccapurple ;
overflow : visible ;
margin : 1 em ;
}
#example-element i {
padding : 8 px ;
border : 1 px dashed ;
}
#y {
grid-column : 4 / 5 ;
grid-row : 4 / 5 ;
}
#z {
grid-column : 5 / 6 ;
grid-row : 4 / 5 ;
}
#bang {
grid-column : 6 / 7 ;
grid-row : 4 / 5 ;
} < section id = "default-example" >
< div id = "example-element" >
< i >A</ i >
< i >B</ i >
< i >C</ i >
< i >D</ i >
< i >E</ i >
< i >F</ i >
< i >G</ i >
< i >H</ i >
< i >I</ i >
< i >J</ i >
< i >K</ i >
< i >L</ i >
< i >M</ i >
< i >N</ i >
< i >O</ i >
< i >P</ i >
< i >Q</ i >
< i id = "y" >Y</ i >
< i id = "z" >Z</ i >
< i id = "bang" >!</ i >
</ div >
</ section > Syntax <inset-value> <inset-value>? Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition Initial see individual properties Applies to Same as column-rule-inset-cap-start, column-rule-inset-cap-end, column-rule-inset-junction-start, column-rule-inset-junction-end, row-rule-inset-cap-start, row-rule-inset-cap-end, row-rule-inset-junction-start, and row-rule-inset-junction-end Inherited see individual properties Percentages see individual properties Computed value see individual properties Canonical order per grammar Animation type see individual properties Longhands column-rule-inset-cap-start , column-rule-inset-cap-end Browser support First browser version supporting column-rule-inset-cap Chrome 149 Edge 149 Firefox No Safari No Chrome Android 149 Safari iOS No
First version with support, from MDN browser-compat-data.
Specification ↗ MDN reference ↗
MDN The column-rule-inset-cap-end CSS property can be used to offset the bottom of column rule segment cap endpoints at the container's end edge, and cap endpoints where no rule segments intersect.
Live preview Example from MDN
column-rule-inset-cap-end: -20px; column-rule-inset-cap-end: 0; column-rule-inset-cap-end: 1em; column-rule-inset-cap-end: 100%; column-rule-inset-cap-end: overlap-join;
#example-element {
display : grid ;
grid-template-columns : repeat ( 7 , 1 fr );
rule : solid thick magenta ;
column-rule-color : rebeccapurple ;
gap : 1 em ;
rule-overlap : column-over-row;
rule-visibility-items : between;
border : 1 px solid rebeccapurple ;
overflow : visible ;
margin : 1 em ;
}
#example-element i {
padding : 8 px ;
border : 1 px dashed ;
}
#y {
grid-column : 4 / 5 ;
grid-row : 4 / 5 ;
}
#z {
grid-column : 5 / 6 ;
grid-row : 4 / 5 ;
}
#bang {
grid-column : 6 / 7 ;
grid-row : 4 / 5 ;
} < section id = "default-example" >
< div id = "example-element" >
< i >A</ i >
< i >B</ i >
< i >C</ i >
< i >D</ i >
< i >E</ i >
< i >F</ i >
< i >G</ i >
< i >H</ i >
< i >I</ i >
< i >J</ i >
< i >K</ i >
< i >L</ i >
< i >M</ i >
< i >N</ i >
< i >O</ i >
< i >P</ i >
< i >Q</ i >
< i id = "y" >Y</ i >
< i id = "z" >Z</ i >
< i id = "bang" >!</ i >
</ div >
</ section > Syntax <inset-value> Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition Initial 0 Applies to grid containers, flex containers, multicol containers, and grid lanes containers Inherited no Percentages refer to the crossing gap width Computed value as specified Canonical order per grammar Animation type by computed value type Browser support First browser version supporting column-rule-inset-cap-end Chrome 149 Edge 149 Firefox No Safari No Chrome Android 149 Safari iOS No
First version with support, from MDN browser-compat-data.
Specification ↗ MDN reference ↗
MDN The column-rule-inset-cap-start CSS property can be used to offset the top of column rule segment cap endpoints at the container's start edge, and cap endpoints where no rule segments intersect.
Live preview Example from MDN
column-rule-inset-cap-start: -20px; column-rule-inset-cap-start: 0; column-rule-inset-cap-start: 1em; column-rule-inset-cap-start: 100%; column-rule-inset-cap-start: overlap-join;
#example-element {
display : grid ;
grid-template-columns : repeat ( 7 , 1 fr );
rule : solid thick magenta ;
column-rule-color : rebeccapurple ;
gap : 1 em ;
rule-overlap : column-over-row;
rule-visibility-items : between;
border : 1 px solid rebeccapurple ;
overflow : visible ;
margin : 1 em ;
}
#example-element i {
padding : 8 px ;
border : 1 px dashed ;
}
#y {
grid-column : 4 / 5 ;
grid-row : 4 / 5 ;
}
#z {
grid-column : 5 / 6 ;
grid-row : 4 / 5 ;
}
#bang {
grid-column : 6 / 7 ;
grid-row : 4 / 5 ;
} < section id = "default-example" >
< div id = "example-element" >
< i >A</ i >
< i >B</ i >
< i >C</ i >
< i >D</ i >
< i >E</ i >
< i >F</ i >
< i >G</ i >
< i >H</ i >
< i >I</ i >
< i >J</ i >
< i >K</ i >
< i >L</ i >
< i >M</ i >
< i >N</ i >
< i >O</ i >
< i >P</ i >
< i >Q</ i >
< i id = "y" >Y</ i >
< i id = "z" >Z</ i >
< i id = "bang" >!</ i >
</ div >
</ section > Syntax <inset-value> Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition Initial 0 Applies to grid containers, flex containers, multicol containers, and grid lanes containers Inherited no Percentages refer to the crossing gap width Computed value as specified Canonical order per grammar Animation type by computed value type Browser support First browser version supporting column-rule-inset-cap-start Chrome 149 Edge 149 Firefox No Safari No Chrome Android 149 Safari iOS No
First version with support, from MDN browser-compat-data.
Specification ↗ MDN reference ↗
No prose in the spec's definition and no MDN page yet: the spec link below is the only description.
Syntax <inset-value> Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition Initial see individual properties Applies to Same as column-rule-inset-cap-start, column-rule-inset-junction-start, column-rule-inset-cap-end, column-rule-inset-junction-end, row-rule-inset-cap-start, row-rule-inset-junction-start, row-rule-inset-cap-end, and row-rule-inset-junction-end Inherited see individual properties Percentages see individual properties Computed value see individual properties Canonical order per grammar Animation type see individual properties Longhands column-rule-inset-cap-end , column-rule-inset-junction-end Browser support First browser version supporting column-rule-inset-end Chrome 149 Edge 149 Firefox No Safari No Chrome Android 149 Safari iOS No
First version with support, from MDN browser-compat-data.
Specification ↗
MDN The column-rule-inset-junction CSS shorthand property can be used to offset both the top and bottom endpoints of column rule segments that are junction endpoints ; that is, endpoints at gap junctions where rule segments intersect.
Live preview Example from MDN
column-rule-inset-junction: 0; column-rule-inset-junction: 10px; column-rule-inset-junction: 0.5em -0.5em; column-rule-inset-junction: overlap-join; column-rule-inset-junction: overlap-join 10px;
#example-element {
display : grid ;
grid-template-columns : repeat ( 5 , 1 fr );
rule : solid thick lightpink ;
column-rule-color : magenta ;
column-rule-break : intersection;
gap : 1.5 em ;
rule-overlap : column-over-row;
border : 1 px solid rebeccapurple ;
margin : auto ;
rule-visibility-items : around;
}
#example-element i {
background-color : #efefef ;
color : #333333 ;
padding : 1 em ;
} < section id = "default-example" >
< div id = "example-element" >
< i >A</ i >
< i >B</ i >
< i >C</ i >
< i >D</ i >
< i >E</ i >
< i >F</ i >
< i >G</ i >
< i >H</ i >
< i >I</ i >
< i >J</ i >
< i >K</ i >
< i >L</ i >
</ div >
</ section > Syntax <inset-value> <inset-value>? Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition Initial see individual properties Applies to Same as column-rule-inset-cap-start, column-rule-inset-cap-end, column-rule-inset-junction-start, column-rule-inset-junction-end, row-rule-inset-cap-start, row-rule-inset-cap-end, row-rule-inset-junction-start, and row-rule-inset-junction-end Inherited see individual properties Percentages see individual properties Computed value see individual properties Canonical order per grammar Animation type see individual properties Longhands column-rule-inset-junction-start , column-rule-inset-junction-end Browser support First browser version supporting column-rule-inset-junction Chrome 149 Edge 149 Firefox No Safari No Chrome Android 149 Safari iOS No
First version with support, from MDN browser-compat-data.
Specification ↗ MDN reference ↗
MDN The column-rule-inset-junction-end CSS property can be used to offset the bottom endpoints of column rule segments that are junction endpoints ; that is, endpoints at gap junctions where rule segments intersect.
Live preview Example from MDN
column-rule-inset-junction-end: 0; column-rule-inset-junction-end: 0.5em; column-rule-inset-junction-end: 10px; column-rule-inset-junction-end: -100%; column-rule-inset-junction-end: overlap-join;
#example-element {
display : grid ;
grid-template-columns : repeat ( 5 , 1 fr );
rule : solid thick lightpink ;
column-rule-color : magenta ;
column-rule-break : intersection;
gap : 1.5 em ;
rule-overlap : column-over-row;
border : 1 px solid rebeccapurple ;
margin : auto ;
rule-visibility-items : around;
}
#example-element i {
background-color : #efefef ;
color : #333333 ;
padding : 1 em ;
} < section id = "default-example" >
< div id = "example-element" >
< i >A</ i >
< i >B</ i >
< i >C</ i >
< i >D</ i >
< i >E</ i >
< i >F</ i >
< i >G</ i >
< i >H</ i >
< i >I</ i >
< i >J</ i >
< i >K</ i >
< i >L</ i >
</ div >
</ section > Syntax <inset-value> Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition Initial 0 Applies to grid containers, flex containers, multicol containers, and grid lanes containers Inherited no Percentages refer to the crossing gap width Computed value as specified Canonical order per grammar Animation type by computed value type Browser support First browser version supporting column-rule-inset-junction-end Chrome 149 Edge 149 Firefox No Safari No Chrome Android 149 Safari iOS No
First version with support, from MDN browser-compat-data.
Specification ↗ MDN reference ↗
MDN The column-rule-inset-junction-start CSS property can be used to offset the top endpoints of column rule segments that are junction endpoints ; that is, endpoints at gap junctions where rule segments intersect.
Live preview Example from MDN
column-rule-inset-junction-start: 0; column-rule-inset-junction-start: 0.5em; column-rule-inset-junction-start: 10px; column-rule-inset-junction-start: -100%; column-rule-inset-junction-start: overlap-join;
#example-element {
display : grid ;
grid-template-columns : repeat ( 5 , 1 fr );
rule : solid thick lightpink ;
column-rule-color : magenta ;
column-rule-break : intersection;
gap : 1.5 em ;
rule-overlap : column-over-row;
border : 1 px solid rebeccapurple ;
margin : auto ;
rule-visibility-items : around;
}
#example-element i {
background-color : #efefef ;
color : #333333 ;
padding : 1 em ;
} < section id = "default-example" >
< div id = "example-element" >
< i >A</ i >
< i >B</ i >
< i >C</ i >
< i >D</ i >
< i >E</ i >
< i >F</ i >
< i >G</ i >
< i >H</ i >
< i >I</ i >
< i >J</ i >
< i >K</ i >
< i >L</ i >
</ div >
</ section > Syntax <inset-value> Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition Initial 0 Applies to grid containers, flex containers, multicol containers, and grid lanes containers Inherited no Percentages refer to the crossing gap width Computed value as specified Canonical order per grammar Animation type by computed value type Browser support First browser version supporting column-rule-inset-junction-start Chrome 149 Edge 149 Firefox No Safari No Chrome Android 149 Safari iOS No
First version with support, from MDN browser-compat-data.
Specification ↗ MDN reference ↗
No prose in the spec's definition and no MDN page yet: the spec link below is the only description.
Syntax <inset-value> Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition Initial see individual properties Applies to Same as column-rule-inset-cap-start, column-rule-inset-junction-start, column-rule-inset-cap-end, column-rule-inset-junction-end, row-rule-inset-cap-start, row-rule-inset-junction-start, row-rule-inset-cap-end, and row-rule-inset-junction-end Inherited see individual properties Percentages see individual properties Computed value see individual properties Canonical order per grammar Animation type see individual properties Longhands column-rule-inset-cap-start , column-rule-inset-junction-start Browser support First browser version supporting column-rule-inset-start Chrome 149 Edge 149 Firefox No Safari No Chrome Android 149 Safari iOS No
First version with support, from MDN browser-compat-data.
Specification ↗
MDN The column-rule-style CSS property defines the line style of the lines drawn between columns in multi-column grid, flex, and multi-col layouts.
Live preview Example from MDN
column-rule-style: dotted; column-rule-style: dashed, dotted; column-rule-style: repeat(2, inset, outset), double; column-rule-style: double, repeat(auto, dashed, solid), double; column-rule-style: hidden;
#example-element {
columns : 6 ;
column-rule-width : thick ;
column-rule-color : teal ;
gap : 7 px ;
} < section id = "default-example" >
< p id = "example-element" >
London. Noel term lately over, and the Lord George sitting in Lincoln's Inn
Hall. Great May weather. As much mud in the streets as if the waters had but
newly retired from the face of the earth, and it would not be weird to meet
an platypus, two feet long or so, waddling like an lizard up Morgan Hill.
</ p >
</ section > Syntax <line-style-list> | <auto-line-style-list> Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition Initial none Applies to grid containers, flex containers, multicol containers, and grid lanes containers Inherited no Percentages n/a Computed value as specified Canonical order per grammar Animation type discrete Browser support First browser version supporting column-rule-style Chrome 50 Edge 12 Firefox 52 Safari 9 Chrome Android 50 Safari iOS 9
First version with support, from MDN browser-compat-data.
Specification ↗ MDN reference ↗
MDN The column-rule-visibility-items CSS property defines whether a column-rule segment is painted in gaps adjacent to empty areas.
Live preview Example from MDN
column-rule-visibility-items: all; column-rule-visibility-items: around; column-rule-visibility-items: between; column-rule-visibility-items: normal;
#example-element {
display : grid ;
column-rule : solid 5 px red ;
gap : 10 px ;
grid-template-rows : repeat ( 3 , 1 fr );
grid-template-columns : repeat ( 3 , 1 fr );
}
cite {
grid-row : 3 ;
grid-column : 3 ;
} < section id = "default-example" >
< section id = "example-element" >
< p >One fish</ p >
< p >Two fish</ p >
< p >Red fish</ p >
< p >Blue fish</ p >
< cite >-- Dr. Seuss</ cite >
</ section >
</ section > Syntax all | around | between | normal Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition Initial normal Applies to grid containers and multicol containers Inherited no Percentages n/a Computed value as specified Canonical order per grammar Animation type discrete Browser support First browser version supporting column-rule-visibility-items Chrome 149 Edge 149 Firefox No Safari No Chrome Android 149 Safari iOS No
First version with support, from MDN browser-compat-data.
Specification ↗ MDN reference ↗
MDN The column-rule-width CSS property defines the widths of the lines drawn between columns in multi-column grid, flex, and multi-col layouts.
Live preview Example from MDN
column-rule-width: thin; column-rule-width: 4px; column-rule-width: thin, medium, thick; column-rule-width: repeat(2, 1px, thick), 10px; column-rule-width: 10px, repeat(auto, 1px, 2px), 10px;
#example-element {
columns : 6 ;
column-rule-style : solid ;
column-rule-color : teal ;
gap : 7 px ;
} < section id = "default-example" >
< p id = "example-element" >
London. Noel term lately over, and the Lord George sitting in Lincoln's Inn
Hall. Great May weather. As much mud in the streets as if the waters had but
newly retired from the face of the earth, and it would not be weird to meet
an platypus, two feet long or so, waddling like an lizard up Morgan Hill.
</ p >
</ section > Syntax <line-width-list> | <auto-line-width-list> Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition Initial medium Applies to grid containers, flex containers, multicol containers, and grid lanes containers Inherited no Percentages n/a Computed value list of absolute lengths, snapped as a border width Canonical order per grammar Animation type repeatable list, see § 4.7 Interpolation of list values. Browser support First browser version supporting column-rule-width Chrome 50 Edge 12 Firefox 52 Safari 9 Chrome Android 50 Safari iOS 9
First version with support, from MDN browser-compat-data.
Specification ↗ MDN reference ↗
MDN The gap CSS shorthand property sets the gaps (also called gutters ) between rows and columns on multi-column , flex , and grid containers.
Live preview Example from MDN
gap: 0; gap: 10%; gap: 1em; gap: 10px 20px; gap: calc(20px + 10%);
#example-element {
border : 1 px solid #c5c5c5 ;
display : grid ;
grid-template-columns : 1 fr 1 fr ;
width : 200 px ;
}
#example-element > div {
background-color : rgb ( 0 0 255 / 0.2 );
border : 3 px solid blue ;
} < section class = "default-example" id = "default-example" >
< div class = "example-container" >
< div class = "transition-all" id = "example-element" >
< div >One</ div >
< div >Two</ div >
< div >Three</ div >
< div >Four</ div >
< div >Five</ div >
</ div >
</ div >
</ section > Syntax <'row-gap'> <'column-gap'>? Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition Initial see individual properties Applies to multi-column containers, flex containers, grid containers, and grid lanes containers Inherited no Percentages refer to corresponding dimension of the content area Computed value see individual properties Canonical order per grammar Animation type by computed value type Longhands row-gap , column-gap Browser support First browser version supporting gap Chrome 57 Edge 16 Firefox 52 Safari 10.1 Chrome Android 57 Safari iOS 10.3
First version with support, from MDN browser-compat-data.
Specification ↗ MDN reference ↗
Legacy alias. Spec This is a legacy name for column-gap; the spec keeps it for compatibility only.
No prose in the spec's definition and no MDN page yet: the spec link below is the only description.
Syntax normal | <length-percentage [0,∞]> | <line-width> Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Specification ↗
Legacy alias. Spec This is a legacy name for gap; the spec keeps it for compatibility only.
No prose in the spec's definition and no MDN page yet: the spec link below is the only description.
Syntax <'row-gap'> <'column-gap'>? Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Specification ↗
Legacy alias. Spec This is a legacy name for row-gap; the spec keeps it for compatibility only.
No prose in the spec's definition and no MDN page yet: the spec link below is the only description.
Syntax normal | <length-percentage [0,∞]> | <line-width> Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Specification ↗
MDN The row-gap CSS property sets the size of the gap (gutter ) between an element's rows in multi-column, flexible box, and grid layouts.
Live preview Example from MDN
row-gap: 0; row-gap: 1ch; row-gap: 1em; row-gap: 20px;
#example-element {
border : 1 px solid #c5c5c5 ;
display : grid ;
grid-template-columns : 1 fr 1 fr ;
width : 200 px ;
}
#example-element > div {
background-color : rgb ( 0 0 255 / 0.2 );
border : 3 px solid blue ;
} < section class = "default-example" id = "default-example" >
< div class = "example-container" >
< div class = "transition-all" id = "example-element" >
< div >One</ div >
< div >Two</ div >
< div >Three</ div >
< div >Four</ div >
< div >Five</ div >
</ div >
</ div >
</ section > Syntax normal | <length-percentage [0,∞]> | <line-width> Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition Initial normal Applies to multi-column containers, flex containers, grid containers, and grid lanes containers Inherited no Percentages see § 2.3 Percentages In gap Properties Computed value specified keyword, else a computed <length-percentage> value Canonical order per grammar Animation type by computed value type Browser support First browser version supporting row-gap Chrome 47 Edge 16 Firefox 52 Safari 10.1 Chrome Android 47 Safari iOS 10.3
First version with support, from MDN browser-compat-data.
Specification ↗ MDN reference ↗
MDN The row-rule CSS shorthand property sets the width, style, and color of the line drawn between rows in multi-row grid, flex, and multi-col layouts.
Live preview Example from MDN
row-rule: solid; row-rule: dotted medium blue; row-rule:
dotted medium blue,
repeat(3, dashed magenta 1px, outset green 5px); row-rule:
dotted medium blue,
repeat(auto, dashed magenta 1px, dashed magenta 5px),
dotted medium blue; row-rule:
dotted medium blue,
repeat(auto, dashed magenta 1px),
outset green 5px;
#example-element {
display : flex ;
flex-flow : column ;
gap : 7 px ;
text-align : left ;
} < section id = "default-example" >
< ul id = "example-element" >
< li >One fish</ li >
< li >Two fish</ li >
< li >Red fish</ li >
< li >Blue fish</ li >
</ ul >
</ section > Syntax <gap-rule-list> | <gap-auto-rule-list> Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition Initial see individual properties Applies to see individual properties Inherited see individual properties Percentages see individual properties Computed value see individual properties Canonical order per grammar Animation type see individual properties Longhands row-rule-width , row-rule-style , row-rule-color Browser support First browser version supporting row-rule Chrome 149 Edge 149 Firefox No Safari No Chrome Android 149 Safari iOS No
First version with support, from MDN browser-compat-data.
Specification ↗ MDN reference ↗
MDN The row-rule-break CSS property sets the behavior for breaking row rules into segments where row rules intersect column gaps.
Live preview Example from MDN
row-rule-break: none; row-rule-break: normal; row-rule-break: intersection;
#example-element {
display : grid ;
grid-template-columns : repeat ( 7 , 1 fr );
row-rule : solid thick orange ;
column-rule : solid thick lavender ;
gap : 15 px ;
}
#example-element i {
padding : 5 px ;
} < section id = "default-example" >
< div id = "example-element" >
< i >A</ i >
< i >B</ i >
< i >C</ i >
< i >D</ i >
< i >E</ i >
< i >F</ i >
< i >G</ i >
< i >H</ i >
< i >I</ i >
< i >J</ i >
< i >K</ i >
< i >L</ i >
< i >M</ i >
< i >N</ i >
< i >O</ i >
< i >P</ i >
< i >Q</ i >
< i >R</ i >
< i >S</ i >
< i >T</ i >
< i >U</ i >
< i >V</ i >
< i >W</ i >
< i >X</ i >
< i >Y</ i >
< i >Z</ i >
</ div >
</ section > Syntax none | normal | intersection Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition Initial normal Applies to grid containers, flex containers, multicol containers, and grid lanes containers Inherited no Percentages n/a Computed value as specified Canonical order per grammar Animation type discrete Browser support First browser version supporting row-rule-break Chrome 149 Edge 149 Firefox No Safari No Chrome Android 149 Safari iOS No
First version with support, from MDN browser-compat-data.
Specification ↗ MDN reference ↗
MDN The row-rule-color CSS property defines the colors of the lines drawn between rows in multi-row grid, flex, and multi-col layouts.
Live preview Example from MDN
row-rule-color: magenta; row-rule-color: magenta, goldenrod; row-rule-color: repeat(2, magenta), goldenrod; row-rule-color: goldenrod, repeat(auto, magenta), goldenrod; row-rule-color: currentColor;
#example-element {
display : flex ;
flex-flow : column ;
row-rule-style : solid ;
row-rule-width : 5 px ;
gap : 5 px ;
text-align : left ;
} < section id = "default-example" >
< ul id = "example-element" >
< li >One fish</ li >
< li >Two fish</ li >
< li >Red fish</ li >
< li >Blue fish</ li >
</ ul >
</ section > Syntax <line-color-list> | <auto-line-color-list> Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition Initial currentcolor Applies to grid containers, flex containers, multicol containers, and grid lanes containers Inherited no Percentages n/a Computed value as specified Canonical order per grammar Animation type repeatable list, see § 4.7 Interpolation of list values. Browser support First browser version supporting row-rule-color Chrome 149 Edge 149 Firefox No Safari No Chrome Android 149 Safari iOS No
First version with support, from MDN browser-compat-data.
Specification ↗ MDN reference ↗
No prose in the spec's definition and no MDN page yet: the spec link below is the only description.
Syntax <'column-rule-inset-cap'> [ / <'column-rule-inset-junction'> ]? Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Browser support First browser version supporting row-rule-inset Chrome 149 Edge 149 Firefox No Safari No Chrome Android 149 Safari iOS No
First version with support, from MDN browser-compat-data.
Specification ↗
MDN The row-rule-inset-cap shorthand CSS property can be used to offset the row rule segment cap endpoints at the container's left and right edges, and endpoints where the segments don't intersect other column or row segments.
Live preview Example from MDN
row-rule-inset-cap: -20px; row-rule-inset-cap: 0; row-rule-inset-cap: 1em; row-rule-inset-cap: 100%; row-rule-inset-cap: overlap-join;
#example-element {
display : grid ;
grid-template-columns : repeat ( 7 , 1 fr );
rule : solid thick rebeccapurple ;
row-rule-color : magenta ;
gap : 0.5 em ;
rule-overlap : row-over-column;
rule-visibility-items : between;
border : 1 px solid rebeccapurple ;
overflow : visible ;
margin : 1 em ;
}
#example-element i {
padding : 8 px ;
border : 1 px dashed ;
}
#r {
grid-column : 5 / 6 ;
grid-row : 3 / 4 ;
}
#z {
grid-column : 5 / 6 ;
grid-row : 4 / 5 ;
}
#bang {
grid-column : 5 / 6 ;
grid-row : 5 / 6 ;
} < section id = "default-example" >
< div id = "example-element" >
< i >A</ i >
< i >B</ i >
< i >C</ i >
< i >D</ i >
< i >E</ i >
< i >F</ i >
< i >G</ i >
< i >H</ i >
< i >I</ i >
< i >J</ i >
< i >K</ i >
< i >L</ i >
< i >M</ i >
< i >N</ i >
< i >O</ i >
< i >P</ i >
< i id = "r" >R</ i >
< i id = "z" >Z</ i >
< i id = "bang" >!</ i >
</ div >
</ section > Syntax <inset-value> <inset-value>? Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition Initial see individual properties Applies to Same as column-rule-inset-cap-start, column-rule-inset-cap-end, column-rule-inset-junction-start, column-rule-inset-junction-end, row-rule-inset-cap-start, row-rule-inset-cap-end, row-rule-inset-junction-start, and row-rule-inset-junction-end Inherited see individual properties Percentages see individual properties Computed value see individual properties Canonical order per grammar Animation type see individual properties Longhands row-rule-inset-cap-start , row-rule-inset-cap-end Browser support First browser version supporting row-rule-inset-cap Chrome 149 Edge 149 Firefox No Safari No Chrome Android 149 Safari iOS No
First version with support, from MDN browser-compat-data.
Specification ↗ MDN reference ↗
MDN The row-rule-inset-cap-end CSS property can be used to offset the end of row rule segment cap endpoints .
Live preview Example from MDN
row-rule-inset-cap-end: -20px; row-rule-inset-cap-end: 1.25em; row-rule-inset-cap-end: 0; row-rule-inset-cap-end: 100%; row-rule-inset-cap-end: overlap-join;
#example-element {
display : grid ;
grid-template-columns : repeat ( 7 , 1 fr );
rule : solid thick magenta ;
row-rule-color : rebeccapurple ;
gap : 1 em ;
rule-overlap : row-over-column;
rule-visibility-items : between;
border : 1 px solid rebeccapurple ;
overflow : visible ;
margin : 1 em ;
}
#example-element i {
padding : 8 px ;
border : 1 px dashed ;
}
#u {
grid-row : 3 / 4 ;
grid-column : 7 / 8 ;
}
#y {
grid-row : 4 / 5 ;
grid-column : 4 / 5 ;
}
#x {
grid-column : 3 / 4 ;
grid-row : 4 / 5 ;
}
#bang {
grid-column : 6 / 7 ;
grid-row : 4 / 5 ;
} < section id = "default-example" >
< div id = "example-element" >
< i >A</ i >
< i >B</ i >
< i >C</ i >
< i >D</ i >
< i >E</ i >
< i >F</ i >
< i >G</ i >
< i >H</ i >
< i >I</ i >
< i >J</ i >
< i >K</ i >
< i >L</ i >
< i >M</ i >
< i >N</ i >
< i >O</ i >
< i >P</ i >
< i >Q</ i >
< i >R</ i >
< i id = "u" >U</ i >
< i id = "x" >X</ i >
< i id = "y" >Y</ i >
< i id = "bang" >!</ i >
</ div >
</ section > Syntax <inset-value> Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition Initial 0 Applies to grid containers, flex containers, multicol containers, and grid lanes containers Inherited no Percentages refer to the crossing gap width Computed value as specified Canonical order per grammar Animation type by computed value type Browser support First browser version supporting row-rule-inset-cap-end Chrome 149 Edge 149 Firefox No Safari No Chrome Android 149 Safari iOS No
First version with support, from MDN browser-compat-data.
Specification ↗ MDN reference ↗
MDN The row-rule-inset-cap-start CSS property can be used to offset the start of row rule segment cap endpoints .
Live preview Example from MDN
row-rule-inset-cap-start: -20px; row-rule-inset-cap-start: 0; row-rule-inset-cap-start: 1em; row-rule-inset-cap-start: 100%; row-rule-inset-cap-start: overlap-join;
#example-element {
display : grid ;
grid-template-columns : repeat ( 7 , 1 fr );
rule : solid thick magenta ;
row-rule-color : rebeccapurple ;
gap : 1 em ;
rule-overlap : row-over-column;
rule-visibility-items : between;
border : 1 px solid rebeccapurple ;
overflow : visible ;
margin : 1 em ;
}
#example-element i {
padding : 8 px ;
border : 1 px dashed ;
}
#r {
grid-column : 5 / 6 ;
grid-row : 3 / 4 ;
}
#z {
grid-column : 5 / 6 ;
grid-row : 4 / 5 ;
}
#bang {
grid-column : 5 / 6 ;
grid-row : 5 / 6 ;
} < section id = "default-example" >
< div id = "example-element" >
< i >A</ i >
< i >B</ i >
< i >C</ i >
< i >D</ i >
< i >E</ i >
< i >F</ i >
< i >G</ i >
< i >H</ i >
< i >I</ i >
< i >J</ i >
< i >K</ i >
< i >L</ i >
< i >M</ i >
< i >N</ i >
< i >O</ i >
< i >P</ i >
< i id = "r" >R</ i >
< i id = "z" >Z</ i >
< i id = "bang" >!</ i >
</ div >
</ section > Syntax <inset-value> Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition Initial 0 Applies to grid containers, flex containers, multicol containers, and grid lanes containers Inherited no Percentages refer to the crossing gap width Computed value as specified Canonical order per grammar Animation type by computed value type Browser support First browser version supporting row-rule-inset-cap-start Chrome 149 Edge 149 Firefox No Safari No Chrome Android 149 Safari iOS No
First version with support, from MDN browser-compat-data.
Specification ↗ MDN reference ↗
No prose in the spec's definition and no MDN page yet: the spec link below is the only description.
Syntax <inset-value> Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition Initial see individual properties Applies to Same as column-rule-inset-cap-start, column-rule-inset-junction-start, column-rule-inset-cap-end, column-rule-inset-junction-end, row-rule-inset-cap-start, row-rule-inset-junction-start, row-rule-inset-cap-end, and row-rule-inset-junction-end Inherited see individual properties Percentages see individual properties Computed value see individual properties Canonical order per grammar Animation type see individual properties Longhands row-rule-inset-cap-end , row-rule-inset-junction-end Browser support First browser version supporting row-rule-inset-end Chrome 149 Edge 149 Firefox No Safari No Chrome Android 149 Safari iOS No
First version with support, from MDN browser-compat-data.
Specification ↗
MDN The row-rule-inset-junction CSS shorthand property can be used to offset both the left and right endpoints of row rule segments that are junction endpoints ; that is, endpoints at gap junctions where rule segments intersect.
Live preview Example from MDN
row-rule-inset-junction: 0; row-rule-inset-junction: 10px; row-rule-inset-junction: 0.5em -0.5em; row-rule-inset-junction: overlap-join; row-rule-inset-junction: overlap-join 10px;
#example-element {
display : grid ;
grid-template-columns : repeat ( 5 , 1 fr );
rule : solid thick lightpink ;
row-rule-color : magenta ;
row-rule-break : intersection;
gap : 1.5 em ;
rule-overlap : row-over-column;
border : 1 px solid rebeccapurple ;
margin : auto ;
rule-visibility-items : around;
}
#example-element i {
background-color : #efefef ;
color : #333333 ;
padding : 1 em ;
} < section id = "default-example" >
< div id = "example-element" >
< i >A</ i >
< i >B</ i >
< i >C</ i >
< i >D</ i >
< i >E</ i >
< i >F</ i >
< i >G</ i >
< i >H</ i >
< i >I</ i >
< i >J</ i >
< i >K</ i >
< i >L</ i >
</ div >
</ section > Syntax <inset-value> <inset-value>? Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition Initial see individual properties Applies to Same as column-rule-inset-cap-start, column-rule-inset-cap-end, column-rule-inset-junction-start, column-rule-inset-junction-end, row-rule-inset-cap-start, row-rule-inset-cap-end, row-rule-inset-junction-start, and row-rule-inset-junction-end Inherited see individual properties Percentages see individual properties Computed value see individual properties Canonical order per grammar Animation type see individual properties Longhands row-rule-inset-junction-start , row-rule-inset-junction-end Browser support First browser version supporting row-rule-inset-junction Chrome 149 Edge 149 Firefox No Safari No Chrome Android 149 Safari iOS No
First version with support, from MDN browser-compat-data.
Specification ↗ MDN reference ↗
MDN The row-rule-inset-junction-end CSS property can be used to offset the end edge of row rule segments that are junction endpoints , that is, endpoints at gap junctions where rule segments intersect.
Live preview Example from MDN
row-rule-inset-junction-end: 0; row-rule-inset-junction-end: 0.5em; row-rule-inset-junction-end: 5px; row-rule-inset-junction-end: -50%; row-rule-inset-junction-end: overlap-join;
#example-element {
display : grid ;
grid-template-columns : repeat ( 5 , 1 fr );
rule : solid thick lightpink ;
row-rule-color : magenta ;
row-rule-break : intersection;
gap : 1.5 em ;
rule-overlap : row-over-column;
border : 1 px solid rebeccapurple ;
margin : auto ;
rule-visibility-items : around;
}
#example-element i {
padding : 8 px ;
border : 1 px dashed ;
}
#u {
grid-row : 3 / 4 ;
grid-column : 7 / 8 ;
}
#y {
grid-row : 4 / 5 ;
grid-column : 4 / 5 ;
}
#x {
grid-column : 3 / 4 ;
grid-row : 4 / 5 ;
}
#bang {
grid-column : 6 / 7 ;
grid-row : 4 / 5 ;
} < section id = "default-example" >
< div id = "example-element" >
< i >A</ i >
< i >B</ i >
< i >C</ i >
< i >D</ i >
< i >E</ i >
< i >F</ i >
< i >G</ i >
< i >H</ i >
< i >I</ i >
< i >J</ i >
< i >K</ i >
< i >L</ i >
< i >M</ i >
< i >N</ i >
< i >O</ i >
< i >P</ i >
< i >Q</ i >
< i >R</ i >
< i id = "u" >U</ i >
< i id = "x" >X</ i >
< i id = "y" >Y</ i >
< i id = "bang" >!</ i >
</ div >
</ section > Syntax <inset-value> Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition Initial 0 Applies to grid containers, flex containers, multicol containers, and grid lanes containers Inherited no Percentages refer to the crossing gap width Computed value as specified Canonical order per grammar Animation type by computed value type Browser support First browser version supporting row-rule-inset-junction-end Chrome 149 Edge 149 Firefox No Safari No Chrome Android 149 Safari iOS No
First version with support, from MDN browser-compat-data.
Specification ↗ MDN reference ↗
MDN The row-rule-inset-junction-start CSS property can be used to offset the start edge of row rule segments that are junction endpoints ; that is, endpoints at gap junctions where rule segments intersect.
Live preview Example from MDN
row-rule-inset-junction-start: 0; row-rule-inset-junction-start: 0.5em; row-rule-inset-junction-start: 5px; row-rule-inset-junction-start: -50%; row-rule-inset-junction-start: overlap-join;
#example-element {
display : grid ;
grid-template-columns : repeat ( 5 , 1 fr );
rule : solid thick lightpink ;
row-rule-color : magenta ;
row-rule-break : intersection;
gap : 1.5 em ;
rule-overlap : row-over-column;
border : 1 px solid rebeccapurple ;
margin : auto ;
rule-visibility-items : around;
}
#example-element i {
padding : 8 px ;
border : 1 px dashed ;
}
#u {
grid-row : 3 / 4 ;
grid-column : 7 / 8 ;
}
#y {
grid-row : 4 / 5 ;
grid-column : 4 / 5 ;
}
#x {
grid-column : 3 / 4 ;
grid-row : 4 / 5 ;
}
#bang {
grid-column : 6 / 7 ;
grid-row : 4 / 5 ;
} < section id = "default-example" >
< div id = "example-element" >
< i >A</ i >
< i >B</ i >
< i >C</ i >
< i >D</ i >
< i >E</ i >
< i >F</ i >
< i >G</ i >
< i >H</ i >
< i >I</ i >
< i >J</ i >
< i >K</ i >
< i >L</ i >
< i >M</ i >
< i >N</ i >
< i >O</ i >
< i >P</ i >
< i >Q</ i >
< i >R</ i >
< i id = "u" >U</ i >
< i id = "x" >X</ i >
< i id = "y" >Y</ i >
< i id = "bang" >!</ i >
</ div >
</ section > Syntax <inset-value> Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition Initial 0 Applies to grid containers, flex containers, multicol containers, and grid lanes containers Inherited no Percentages refer to the crossing gap width Computed value as specified Canonical order per grammar Animation type by computed value type Browser support First browser version supporting row-rule-inset-junction-start Chrome 149 Edge 149 Firefox No Safari No Chrome Android 149 Safari iOS No
First version with support, from MDN browser-compat-data.
Specification ↗ MDN reference ↗
No prose in the spec's definition and no MDN page yet: the spec link below is the only description.
Syntax <inset-value> Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition Initial see individual properties Applies to Same as column-rule-inset-cap-start, column-rule-inset-junction-start, column-rule-inset-cap-end, column-rule-inset-junction-end, row-rule-inset-cap-start, row-rule-inset-junction-start, row-rule-inset-cap-end, and row-rule-inset-junction-end Inherited see individual properties Percentages see individual properties Computed value see individual properties Canonical order per grammar Animation type see individual properties Longhands row-rule-inset-cap-start , row-rule-inset-junction-start Browser support First browser version supporting row-rule-inset-start Chrome 149 Edge 149 Firefox No Safari No Chrome Android 149 Safari iOS No
First version with support, from MDN browser-compat-data.
Specification ↗
MDN The row-rule-style CSS property defines the line style of the lines drawn between rows in multi-row grid, flex, and multi-col layouts.
Live preview Example from MDN
row-rule-style: solid; row-rule-style: inset, outset; row-rule-style: repeat(2, dashed, dotted), solid; row-rule-style: solid, repeat(auto, dashed, dotted), solid; row-rule-style: hidden;
#example-element {
display : flex ;
flex-flow : column ;
row-rule-width : thick ;
row-rule-color : magenta ;
gap : 7 px ;
text-align : left ;
} < section id = "default-example" >
< ul id = "example-element" >
< li >One fish</ li >
< li >Two fish</ li >
< li >Red fish</ li >
< li >Blue fish</ li >
</ ul >
</ section > Syntax <line-style-list> | <auto-line-style-list> Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition Initial none Applies to grid containers, flex containers, multicol containers, and grid lanes containers Inherited no Percentages n/a Computed value as specified Canonical order per grammar Animation type discrete Browser support First browser version supporting row-rule-style Chrome 149 Edge 149 Firefox No Safari No Chrome Android 149 Safari iOS No
First version with support, from MDN browser-compat-data.
Specification ↗ MDN reference ↗
MDN The row-rule-visibility-items CSS property defines whether a row-rule segment is painted in gaps adjacent to empty areas.
Live preview Example from MDN
row-rule-visibility-items: all; row-rule-visibility-items: around; row-rule-visibility-items: between; row-rule-visibility-items: normal;
#example-element {
display : grid ;
row-rule : solid 5 px red ;
gap : 10 px ;
grid-template-columns : repeat ( 3 , 1 fr );
grid-template-rows : repeat ( 3 , 1 fr );
}
cite {
grid-column : 3 ;
grid-row : 3 ;
} < section id = "default-example" >
< section id = "example-element" >
< p >One fish</ p >
< p >Two fish</ p >
< p >Red fish</ p >
< p >Blue fish</ p >
< cite >-- Dr. Seuss</ cite >
</ section >
</ section > Syntax all | around | between | normal Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition Initial normal Applies to grid containers and multicol containers Inherited no Percentages n/a Computed value as specified Canonical order per grammar Animation type discrete Browser support First browser version supporting row-rule-visibility-items Chrome 149 Edge 149 Firefox No Safari No Chrome Android 149 Safari iOS No
First version with support, from MDN browser-compat-data.
Specification ↗ MDN reference ↗
MDN The row-rule-width CSS property defines the widths of the lines drawn between rows in multi-row grid, flex, and multi-col layouts.
Live preview Example from MDN
row-rule-width: thin; row-rule-width: thin, thick; row-rule-width: repeat(2, thin, thick), 10px; row-rule-width: thick, repeat(auto, 1px, 2px), thick; row-rule-width: medium;
#example-element {
display : flex ;
flex-flow : column ;
row-rule-style : solid ;
row-rule-color : magenta ;
gap : 5 px ;
text-align : left ;
} < section id = "default-example" >
< ul id = "example-element" >
< li >One fish</ li >
< li >Two fish</ li >
< li >Red fish</ li >
< li >Blue fish</ li >
</ ul >
</ section > Syntax <line-width-list> | <auto-line-width-list> Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition Initial medium Applies to grid containers, flex containers, multicol containers, and grid lanes containers Inherited no Percentages n/a Computed value list of absolute lengths, snapped as a border width Canonical order per grammar Animation type repeatable list, see § 4.7 Interpolation of list values. Browser support First browser version supporting row-rule-width Chrome 149 Edge 149 Firefox No Safari No Chrome Android 149 Safari iOS No
First version with support, from MDN browser-compat-data.
Specification ↗ MDN reference ↗
MDN The rule CSS shorthand property sets the width, style, and color of the line drawn between rows and columns in multi-row grid, flex, and multi-col layouts, setting both the column and row rules to the same values.
Live preview Example from MDN
rule: solid; rule: dotted medium blue; rule:
dotted medium blue,
repeat(3, dotted red 2px, double orange 5px); rule:
dashed medium magenta,
repeat(auto, dotted blue 2px, dotted blue 5px),
dashed medium magenta; rule:
dashed medium magenta,
repeat(auto, dotted blue 2px),
outset goldenrod 5px;
#example-element {
display : grid ;
grid-template-columns : repeat ( 7 , 1 fr );
rule : solid thick ;
}
#example-element i {
padding : 5 px ;
} < section id = "default-example" >
< div id = "example-element" >
< i >A</ i >
< i >B</ i >
< i >C</ i >
< i >D</ i >
< i >E</ i >
< i >F</ i >
< i >G</ i >
< i >H</ i >
< i >I</ i >
< i >J</ i >
< i >K</ i >
< i >L</ i >
< i >M</ i >
< i >N</ i >
< i >O</ i >
< i >P</ i >
< i >Q</ i >
< i >R</ i >
< i >S</ i >
< i >T</ i >
< i >U</ i >
< i >V</ i >
< i >W</ i >
< i >X</ i >
< i >Y</ i >
< i >Z</ i >
</ div >
</ section > Syntax <'column-rule'> Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition Initial see individual properties Applies to Same as column-rule and row-rule Inherited no Percentages see individual properties Computed value see individual properties Canonical order per grammar Animation type see individual properties Longhands column-rule , row-rule Browser support First browser version supporting rule Chrome 149 Edge 149 Firefox No Safari No Chrome Android 149 Safari iOS No
First version with support, from MDN browser-compat-data.
Specification ↗ MDN reference ↗
MDN The rule-break CSS shorthand property sets the behavior for breaking column and row rules into segments where rows and column gaps intersect, setting column-rule-break and row-rule-break to the same value.
Live preview Example from MDN
rule-break: none; rule-break: normal; rule-break: intersection;
#example-element {
display : grid ;
grid-template-columns : repeat ( 7 , 1 fr );
row-rule : solid thick orange ;
column-rule : solid thick purple ;
gap : 10 px ;
}
#example-element i {
padding : 5 px ;
} < section id = "default-example" >
< div id = "example-element" >
< i >A</ i >
< i >B</ i >
< i >C</ i >
< i >D</ i >
< i >E</ i >
< i >F</ i >
< i >G</ i >
< i >H</ i >
< i >I</ i >
< i >J</ i >
< i >K</ i >
< i >L</ i >
< i >M</ i >
< i >N</ i >
< i >O</ i >
< i >P</ i >
< i >Q</ i >
< i >R</ i >
< i >S</ i >
< i >T</ i >
< i >U</ i >
< i >V</ i >
< i >W</ i >
< i >X</ i >
< i >Y</ i >
< i >Z</ i >
</ div >
</ section > Syntax <'column-rule-break'> Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition Initial see individual properties Applies to Same as column-rule-break and row-rule-break Inherited see individual properties Percentages see individual properties Computed value see individual properties Canonical order per grammar Animation type see individual properties Longhands column-rule-break , row-rule-break Browser support First browser version supporting rule-break Chrome 149 Edge 149 Firefox No Safari No Chrome Android 149 Safari iOS No
First version with support, from MDN browser-compat-data.
Specification ↗ MDN reference ↗
MDN The rule-color CSS shorthand property defines the colors of the lines drawn between columns and rows in multi-column grid, flex, and multi-col layouts, setting the colors of the column and row rules to the same value.
Live preview Example from MDN
rule-color: purple; rule-color: rgb(48 125 222), rgb(222 48 125); rule-color: rgb(48 125 222), repeat(3, rgb(222 48 125)); rule-color: purple, repeat(auto, red, yellow);
#example-element {
display : grid ;
grid-template-columns : repeat ( 7 , 1 fr );
rule : solid thick ;
}
#example-element i {
padding : 5 px ;
} < section id = "default-example" >
< div id = "example-element" >
< i >A</ i >
< i >B</ i >
< i >C</ i >
< i >D</ i >
< i >E</ i >
< i >F</ i >
< i >G</ i >
< i >H</ i >
< i >I</ i >
< i >J</ i >
< i >K</ i >
< i >L</ i >
< i >M</ i >
< i >N</ i >
< i >O</ i >
< i >P</ i >
< i >Q</ i >
< i >R</ i >
< i >S</ i >
< i >T</ i >
< i >U</ i >
< i >V</ i >
< i >W</ i >
< i >X</ i >
< i >Y</ i >
< i >Z</ i >
</ div >
</ section > Syntax <'column-rule-color'> Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition Initial see individual properties Applies to Same as column-rule-color and row-rule-color Inherited no Percentages see individual properties Computed value see individual properties Canonical order per grammar Animation type see individual properties Longhands column-rule-color , row-rule-color Browser support First browser version supporting rule-color Chrome 149 Edge 149 Firefox No Safari No Chrome Android 149 Safari iOS No
First version with support, from MDN browser-compat-data.
Specification ↗ MDN reference ↗
No prose in the spec's definition and no MDN page yet: the spec link below is the only description.
Syntax <'column-rule-inset'> Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition Initial see individual properties Applies to Same as column-rule-inset and row-rule-inset Inherited see individual properties Percentages see individual properties Computed value see individual properties Canonical order per grammar Animation type see individual properties Longhands column-rule-inset , row-rule-inset Browser support First browser version supporting rule-inset Chrome 149 Edge 149 Firefox No Safari No Chrome Android 149 Safari iOS No
First version with support, from MDN browser-compat-data.
Specification ↗
MDN The rule-inset-cap CSS shorthand property can be used to offset the column and row rule segment cap endpoints to the same value.
Live preview Example from MDN
rule-inset-cap: -20px; rule-inset-cap: 0; rule-inset-cap: 1em; rule-inset-cap: 100%; rule-inset-cap: overlap-join;
#example-element {
display : grid ;
grid-template-columns : repeat ( 7 , 1 fr );
rule : solid thick magenta ;
column-rule-color : rebeccapurple ;
gap : 1 em ;
rule-overlap : column-over-row;
rule-visibility-items : between;
border : 1 px solid rebeccapurple ;
overflow : visible ;
margin : 1 em ;
}
#example-element i {
padding : 8 px ;
border : 1 px dashed ;
}
#y {
grid-column : 4 / 5 ;
grid-row : 4 / 5 ;
}
#z {
grid-column : 5 / 6 ;
grid-row : 4 / 5 ;
}
#bang {
grid-column : 6 / 7 ;
grid-row : 4 / 5 ;
} < section id = "default-example" >
< div id = "example-element" >
< i >A</ i >
< i >B</ i >
< i >C</ i >
< i >D</ i >
< i >E</ i >
< i >F</ i >
< i >G</ i >
< i >H</ i >
< i >I</ i >
< i >J</ i >
< i >K</ i >
< i >L</ i >
< i >M</ i >
< i >N</ i >
< i >O</ i >
< i >P</ i >
< i >Q</ i >
< i id = "y" >Y</ i >
< i id = "z" >Z</ i >
< i id = "bang" >!</ i >
</ div >
</ section > Syntax <'column-rule-inset-cap'> Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition Initial see individual properties Applies to Same as column-rule-inset-cap and row-rule-inset-cap Inherited see individual properties Percentages see individual properties Computed value see individual properties Canonical order per grammar Animation type see individual properties Longhands column-rule-inset-cap Browser support First browser version supporting rule-inset-cap Chrome 149 Edge 149 Firefox No Safari No Chrome Android 149 Safari iOS No
First version with support, from MDN browser-compat-data.
Specification ↗ MDN reference ↗
No prose in the spec's definition and no MDN page yet: the spec link below is the only description.
Syntax <'column-rule-inset-end'> Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition Initial see individual properties Applies to Same as column-rule-inset-end and row-rule-inset-end Inherited see individual properties Percentages see individual properties Computed value see individual properties Canonical order per grammar Animation type see individual properties Longhands column-rule-inset-end , row-rule-inset-end Browser support First browser version supporting rule-inset-end Chrome 149 Edge 149 Firefox No Safari No Chrome Android 149 Safari iOS No
First version with support, from MDN browser-compat-data.
Specification ↗
MDN The rule-inset-junction CSS shorthand property can be used to offset the column and row rule segment junction endpoints to the same value.
Live preview Example from MDN
rule-inset-junction: 0; rule-inset-junction: 10px; rule-inset-junction: 0.5em -0.5em; rule-inset-junction: overlap-join; rule-inset-junction: overlap-join 10px;
#example-element {
display : grid ;
grid-template-columns : repeat ( 5 , 1 fr );
rule : solid thick lightpink ;
column-rule-color : magenta ;
rule-break : intersection;
gap : 1.5 em ;
rule-overlap : column-over-row;
border : 1 px solid rebeccapurple ;
margin : auto ;
rule-visibility-items : around;
}
#example-element i {
background-color : #efefef ;
color : #333333 ;
padding : 1 em ;
} < section id = "default-example" >
< div id = "example-element" >
< i >A</ i >
< i >B</ i >
< i >C</ i >
< i >D</ i >
< i >E</ i >
< i >F</ i >
< i >G</ i >
< i >H</ i >
< i >I</ i >
< i >J</ i >
< i >K</ i >
< i >L</ i >
</ div >
</ section > Syntax <'column-rule-inset-junction'> Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition Initial see individual properties Applies to Same as column-rule-inset-junction and row-rule-inset-junction Inherited see individual properties Percentages see individual properties Computed value see individual properties Canonical order per grammar Animation type see individual properties Longhands column-rule-inset-junction Browser support First browser version supporting rule-inset-junction Chrome 149 Edge 149 Firefox No Safari No Chrome Android 149 Safari iOS No
First version with support, from MDN browser-compat-data.
Specification ↗ MDN reference ↗
No prose in the spec's definition and no MDN page yet: the spec link below is the only description.
Syntax <'column-rule-inset-start'> Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition Initial see individual properties Applies to Same as column-rule-inset-start and row-rule-inset-start Inherited see individual properties Percentages see individual properties Computed value see individual properties Canonical order per grammar Animation type see individual properties Longhands column-rule-inset-start , row-rule-inset-start Browser support First browser version supporting rule-inset-start Chrome 149 Edge 149 Firefox No Safari No Chrome Android 149 Safari iOS No
First version with support, from MDN browser-compat-data.
Specification ↗
MDN The rule-overlap CSS property specifies which rule is painted on top when column rules and row rules intersect.
Live preview Example from MDN
rule-overlap: row-over-column; rule-overlap: column-over-row;
#example-element {
display : grid ;
grid-template-columns : repeat ( 7 , 1 fr );
row-rule : solid thick orange ;
column-rule : solid thick purple ;
}
#example-element i {
padding : 5 px ;
} < section id = "default-example" >
< div id = "example-element" >
< i >A</ i >
< i >B</ i >
< i >C</ i >
< i >D</ i >
< i >E</ i >
< i >F</ i >
< i >G</ i >
< i >H</ i >
< i >I</ i >
< i >J</ i >
< i >K</ i >
< i >L</ i >
< i >M</ i >
< i >N</ i >
< i >O</ i >
< i >P</ i >
< i >Q</ i >
< i >R</ i >
< i >S</ i >
< i >T</ i >
< i >U</ i >
< i >V</ i >
< i >W</ i >
< i >X</ i >
< i >Y</ i >
< i >Z</ i >
</ div >
</ section > Syntax row-over-column | column-over-row Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition Initial row-over-column Applies to grid containers, flex containers, and grid lanes containers Inherited no Percentages n/a Computed value as specified Canonical order per grammar Animation type discrete Browser support First browser version supporting rule-overlap Chrome 149 Edge 149 Firefox No Safari No Chrome Android 149 Safari iOS No
First version with support, from MDN browser-compat-data.
Specification ↗ MDN reference ↗
MDN The rule-style CSS shorthand property defines the line style of the lines drawn between columns and rows in multi-column grid, flex, and multi-col layouts, setting the styles of the column and row rules to the same value.
Live preview Example from MDN
rule-style: solid; rule-style: dashed, dotted; rule-style: repeat(2, inset, dashed, double); rule-style: solid, repeat(auto, double), solid; rule-style: hidden;
#example-element {
display : grid ;
grid-template-columns : repeat ( 7 , 1 fr );
rule : solid rebeccapurple 7 px ;
gap : 7 px ;
}
#example-element i {
padding : 5 px ;
} < section id = "default-example" >
< div id = "example-element" >
< i >A</ i >
< i >B</ i >
< i >C</ i >
< i >D</ i >
< i >E</ i >
< i >F</ i >
< i >G</ i >
< i >H</ i >
< i >I</ i >
< i >J</ i >
< i >K</ i >
< i >L</ i >
< i >M</ i >
< i >N</ i >
< i >O</ i >
< i >P</ i >
< i >Q</ i >
< i >R</ i >
< i >S</ i >
< i >T</ i >
< i >U</ i >
< i >V</ i >
< i >W</ i >
< i >X</ i >
< i >Y</ i >
< i >Z</ i >
</ div >
</ section > Syntax <'column-rule-style'> Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition Initial see individual properties Applies to Same as column-rule-style and row-rule-style Inherited no Percentages see individual properties Computed value see individual properties Canonical order per grammar Animation type see individual properties Longhands column-rule-style , row-rule-style Browser support First browser version supporting rule-style Chrome 149 Edge 149 Firefox No Safari No Chrome Android 149 Safari iOS No
First version with support, from MDN browser-compat-data.
Specification ↗ MDN reference ↗
MDN The rule-visibility-items CSS shorthand property defines whether rule segments are painted in both row and column gaps adjacent to empty areas.
Live preview Example from MDN
rule-visibility-items: all; rule-visibility-items: around; rule-visibility-items: between; rule-visibility-items: normal;
#example-element {
display : grid ;
rule : solid 5 px red ;
gap : 10 px ;
grid-template-rows : repeat ( 3 , 1 fr );
grid-template-columns : repeat ( 3 , 1 fr );
}
cite {
grid-row : 3 ;
grid-column : 3 ;
} < section id = "default-example" >
< section id = "example-element" >
< p >One fish</ p >
< p >Two fish</ p >
< p >Red fish</ p >
< p >Blue fish</ p >
< cite >-- Dr. Seuss</ cite >
</ section >
</ section > Syntax <'column-rule-visibility-items'> Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition Initial see individual properties Applies to Same as column-rule-visibility-items and row-rule-visibility-items Inherited see individual properties Percentages see individual properties Computed value see individual properties Canonical order per grammar Animation type see individual properties Longhands column-rule-visibility-items Browser support First browser version supporting rule-visibility-items Chrome 149 Edge 149 Firefox No Safari No Chrome Android 149 Safari iOS No
First version with support, from MDN browser-compat-data.
Specification ↗ MDN reference ↗
MDN The rule-width CSS shorthand property defines the widths of any lines drawn in the gutters of multi-row grid, flex, and multi-col layouts, setting the widths of the column and row rules to the same value.
Live preview Example from MDN
rule-width: thin; rule-width: thin, thick; rule-width: 1px, 10px; rule-width: repeat(2, thin, thick), 10px; rule-width: thick, repeat(auto, 1px, 2px), thick;
#example-element {
display : grid ;
grid-template-columns : repeat ( 7 , 1 fr );
rule : solid magenta ;
}
#example-element i {
padding : 5 px ;
} < section id = "default-example" >
< div id = "example-element" >
< i >A</ i >
< i >B</ i >
< i >C</ i >
< i >D</ i >
< i >E</ i >
< i >F</ i >
< i >G</ i >
< i >H</ i >
< i >I</ i >
< i >J</ i >
< i >K</ i >
< i >L</ i >
< i >M</ i >
< i >N</ i >
< i >O</ i >
< i >P</ i >
< i >Q</ i >
< i >R</ i >
< i >S</ i >
< i >T</ i >
< i >U</ i >
< i >V</ i >
< i >W</ i >
< i >X</ i >
< i >Y</ i >
< i >Z</ i >
</ div >
</ section > Syntax <'column-rule-width'> Formal grammar from the specification, as webref extracts it: the latest level's definition, sometimes ahead of what browsers implement.
Definition Initial see individual properties Applies to Same as column-rule-width and row-rule-width Inherited no Percentages see individual properties Computed value see individual properties Canonical order per grammar Animation type see individual properties Longhands column-rule-width , row-rule-width Browser support First browser version supporting rule-width Chrome 149 Edge 149 Firefox No Safari No Chrome Android 149 Safari iOS No
First version with support, from MDN browser-compat-data.
Specification ↗ MDN reference ↗
Spec Such a list may contain repeat() notations. Similar to CSS Grid Layout 1 § 7.2.3 Repeating Rows and Columns: the repeat() notation, these notations allow a series of gap decorations that exhibit a recurring pattern to be written in a more compact form.
MDN The repeat() CSS function represents a repeated fragment of the track list or rule-line list . It allows repeated patterns of columns, rows, and their gap decorations, to be written in a compact form.
Live preview Example from MDN
grid-template-columns: repeat(2, 60px);
rule-color: repeat(2, green, orange), yellow; grid-template-columns: 1fr repeat(2, 60px);
rule-color: repeat(2, green), repeat(2, yellow); grid-template-columns: repeat(2, 20px 1fr);
rule-color: repeat(auto, green), repeat(2, yellow); grid-template-columns: repeat(auto-fill, 40px);
rule-color: repeat(2, orange, yellow), repeat(auto, green);
#example-element {
border : 1 px solid #c5c5c5 ;
display : grid ;
grid-auto-rows : 40 px ;
grid-gap : 10 px ;
width : 220 px ;
rule : solid 4 px ;
}
#example-element > div {
background-color : rgb ( 0 0 255 / 0.2 );
border : 3 px solid blue ;
} < section class = "default-example" id = "default-example" >
< div class = "example-container" >
< div class = "transition-all" id = "example-element" >
< div ></ div >
< div ></ div >
< div ></ div >
< div ></ div >
< div ></ div >
< div ></ div >
< div ></ div >
< div ></ div >
< div ></ div >
< div ></ div >
< div ></ div >
< div ></ div >
< div ></ div >
< div ></ div >
</ div >
</ div >
</ section > Browser support First browser version supporting repeat() Chrome 57 Edge 16 Firefox 76 Safari 10.1 Chrome Android 57 Safari iOS 10.3
First version with support, from MDN browser-compat-data.
Defined for <auto-repeat-line-color>, <auto-repeat-line-style>, <auto-repeat-line-width>, <repeat-line-color>, <repeat-line-style>, <repeat-line-width>, <auto-repeat>, <fixed-repeat>, <track-repeat>
This feature only appears in the context of these properties, functions or types.
Specification ↗ MDN reference ↗