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-column-span.md.
Lynx
  • English
  • deprecated grid-column-span

    Warning

    This API is deprecated.

    Introduction

    Contributes a grid span to the grid item's placement. If there are grid-column-start and grid-column-end, this css property will be overridden.

    Examples

    Syntax

    /* <number> values */
    grid-column-span: 1;
    grid-column-span: 2;

    Values

    • <number>

      Contributes a grid span to the grid item's placement.

    Formal definition

    Initial value1
    Applies togrid items
    Inheritedno
    Animatable

    Formal syntax

    grid-column-span = <number>

    Differences from the Web

    • There is no such style in Web.

    Notes

    • When grid-column-start and grid-column-end specify two distinct grid lines, the column span is determined by the distance between those lines, and grid-column-span is ignored. The following item spans three columns:

      grid-column-start: 2;
      grid-column-end: 5;
      grid-column-span: 1;
    • Do not combine grid-column-span with span <number> in grid-column-start or grid-column-end. Both specify the column span and can override each other. The following declarations specify conflicting spans of three columns and one column:

      grid-column-start: 2;
      grid-column-end: span 3;
      grid-column-span: 1;

    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.