CSS grid-row Property

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP




<!--
main_leaderboard, all: [728,90][970,90][320,50][468,60]
-->




CSS grid-row Property



Previous
Complete CSS Reference
Next



Example


Make "item1" start on row 1 and span 2 columns:



.item1
  grid-row: 1 / span 2;

Try it Yourself »



Definition and Usage


The grid-row property specifies a grid
item's size and location in a grid layout, and is a shorthand property for the
following properties::


  • grid-row-start

  • grid-row-end












Default value: auto / auto
Inherited: no
Animatable: yes. Read about animatable
Try it
Version: CSS Grid Layout Module Level 1
JavaScript syntax: object.style.gridRow="2 / span 2"
Try it


Browser Support


The numbers in the table specify the first browser version that fully supports the property.















Property
grid-row 57 16 52 10 44





<!--
mid_content, all: [300,250][336,280][728,90][970,250][970,90][320,50][468,60]
-->




CSS Syntax



grid-row: grid-row-start /
grid-row-end
;


Property Values









Value Description
grid-row-start Specifies on which row to start displaying the item.
grid-row-end Specifies on which row-line to stop displaying the item, or how many
rows to span.


More Examples




Example


You can use row-line values instead numbers of rows to span:



.item1
  grid-row: 1 / 3;


Try it Yourself »



Related Pages


CSS tutorial: CSS Grid Layout




Previous
Complete CSS Reference
Next

Popular posts from this blog

WWE Night of Champions

Poznań

Kaliningrad