CSS grid-row-start Property
Specifies on which row line a grid item starts
Syntax
grid-row-start: auto | <integer> | span <integer> | <name>;Values
| Value | Description |
|---|---|
| auto | Automatic placement |
| <integer> | Specific row line number |
| span <integer> | Spans rows |
Example
.item {
grid-row-start: 1;
}Understanding CSS grid-row-start
The CSS grid-row-start property specifies on which row line a grid item starts. As part of the Grid module in CSS, it is one of the most commonly used properties for controlling the visual presentation of web pages.
You can set grid-row-start to values such as auto, <integer>, span <integer>, among others. Each value changes how the browser renders the affected element, giving you fine-grained control over your page layout and design. Choosing the right value depends on the specific design requirements of your project.
Common use cases for the grid-row-start property include responsive web design, component-based layouts, and creating visually consistent interfaces across devices. It works closely with related properties like grid-row-end, grid-row, grid-column-start to achieve complex styling effects. Understanding how these properties interact helps you write cleaner, more maintainable stylesheets.
Browser support for grid-row-start is excellent across all modern browsers including Chrome, Firefox, Safari, and Edge. For older browsers, consider using fallback values or progressive enhancement strategies. The property can also be set dynamically via JavaScript using element.style.gridRowStart or the CSS custom properties (variables) approach for theming.
Related Properties
grid-row-endSpecifies on which row line a grid item ends
grid-rowShorthand for grid-row-start and grid-row-end specifying a grid item's row placement
grid-column-startSpecifies on which column line a grid item starts
grid-areaSpecifies a grid item's size and location by referencing named areas or line numbers
Explore More CSS Properties
Browse our complete reference of 251 CSS properties with syntax, examples, and tips.