CSS | grid-row Property
The grid-row property in CSS is used to specify the size and location in a grid layout. It is the combination of grid-row-start and grid-row-end property.

Syntax:
grid-row: grid-row-start|grid-row-end;
Property Values:
-
grid-row-start: It is used to specify the row on which to start displaying the item.
Example:
<!DOCTYPE html><html><head><style>.main {display: grid;grid-template-columns: auto auto auto auto;grid-gap: 10px;background-color: green;padding: 10px;}.GFG {background-color: rgba(255, 255, 255, 0.8);text-align: center;padding: 20px 0;font-size: 30px;}.Geeks1 {grid-row-start: 3;}</style></head><body><h3>grid-row-start Property</h3><divclass="main"><divclass="Geeks1 GFG">1</div><divclass="Geeks2 GFG">2</div><divclass="Geeks3 GFG">3</div><divclass="Geeks4 GFG">4</div><divclass="Geeks5 GFG">5</div><divclass="Geeks6 GFG">6</div><divclass="Geeks7 GFG">7</div><divclass="Geeks8 GFG">8</div></div></body></html>chevron_rightfilter_noneOutput:

- grid-row-end It is used to specify the row-line on which to stop displaying the item or specify how many rows an item will span.
Example:<!DOCTYPE html><html><head><style>.main {display: grid;grid-template-columns: auto auto auto auto;grid-gap: 10px;background-color: green;padding: 10px;}.GFG {background-color: rgba(255, 255, 255, 0.8);text-align: center;padding: 20px 0;font-size: 30px;}.Geeks1 {grid-row-end: span 3;}</style></head><body><h3>grid-row-end Property</h3><divclass="main"><divclass="Geeks1 GFG">1</div><divclass="Geeks2 GFG">2</div><divclass="Geeks3 GFG">3</div><divclass="Geeks4 GFG">4</div><divclass="Geeks5 GFG">5</div><divclass="Geeks6 GFG">6</div><divclass="Geeks7 GFG">7</div><divclass="Geeks8 GFG">8</div></div></body></html>chevron_rightfilter_noneOutput:

Supported Browsers: The browser supported by grid-row property are listed below:
- Google Chrome 57.0
- Internet Explorer 16.0
- Firefox 52.0
- Safari 10.0
- Opera 44.0
Recommended Posts:
- CSS | transition-property Property
- CSS | top Property
- CSS | right Property
- CSS | nav-down property
- CSS | nav-right property
- CSS | all Property
- CSS | transition Property
- CSS | flex Property
- CSS | align-self Property
- CSS | resize Property
- CSS | columns Property
- CSS | grid-gap Property
- CSS | The object-fit Property
- CSS | height Property
- CSS | animation-name Property
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.



