For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt, and this page is available as Markdown at /next/api/css/properties/grid-row-end.md.
Lynx
  • English
  • grid-row-end

    Introduction

    The grid-row-end CSS property specifies a grid item's end position within the grid row by contributing a line, a span, or nothing (automatic) to its grid placement.

    Examples

    Syntax

    /* <number> values */
    grid-row-end: 2;
    grid-row-end: 3;
    
    /* span  <number> values*/
    grid-row-end: span 1;

    Values

    • auto

      Default value. Is a keyword indicating that the property contributes nothing to the grid item's placement, indicating auto-placement, an automatic span, or a default span of 1.

    • <number>

      Grid item's end position. An integer value of 0 is invalid.

    • span && <number>

      Contributes a grid span to the grid item's placement such that the row end edge of the grid item's grid area is n lines from the start edge.

    Formal definition

    Initial valueauto
    Applies togrid items
    Inheritedno
    Animatable

    Formal syntax

    grid-row-end = <number> | [span && <number>]

    Difference between web

    • <custom-ident>, span && <custom-ident>, <integer> && <custom-ident>? are not supported.

    Compatibility

    LCD tables only load in the browser

    Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.