grid-row-span / grid-column-span

Warning: these properties have been removed from the spec. This removal was before stable versions of grid shipped in browsers, so they likely are not supported at all.

The grid-row-span property defines the number of rows the item will occupy. If not specified, the item will only occupy its own cell. A positive value will expand the item to next rows. The grid-column-span property is the same except it extends an item across multiple columns.

If you're familiar with <table> layout, think of it like how colspan or rowspan attributes works on table cells.

.element {
  grid-row-span | grid-column-span: <integer> [DEFAULT: 1]


Browser Support

This browser support data is from Caniuse, which has more detail. A number indicates that browser supports the feature at that version and up.



Mobile / Tablet

iOS SafariOpera MobileOpera MiniAndroidAndroid ChromeAndroid Firefox


  1. User Avatar
    Antonio Bonifati
    Permalink to comment#

    No support for things GUI toolkits had in the 80s. How long do we have to wait more? It is ridicules Google, who makes the dominant browser Chrome, does not support this… and forces us to write tricky and troublesome code in order to properly layout web pages.

  2. User Avatar
    Florence Maurice
    Permalink to comment#

    grid-row-span and grid-column-span are no longer part of the specification.

  3. User Avatar
    Justin McDowell
    Permalink to comment#

    For the record, you can now accomplish this using the grid-column-end property instead:

    grid-column-end: span 3;

    See it in action here:

    • User Avatar
      Russell Bishop (@RussellBishop)
      Permalink to comment#

      That’s really helpful Justin – thanks!

  4. User Avatar

    I am using grid-column: span int to do it. Seems to work fine. So to span 3 cols would be: grid-column: span 3;

  5. User Avatar
    Permalink to comment#

    Hi everyone,
    i got an autofill columns layout up to 6 cols, i want to see no less then 2 columns on mobile device (an iphone 8 for example)… i got this making giving a different minmax size on certain media query.
    Now: i want on bigger screensizes (desktop) the last 2 columns to become a single one, so i used grid-column: span 2 on the last col of the row, but when i see the page back on the iphone screen i cannot see at all the spanned column.
    do you know why?
    thanks in advance for your help.

Leave a Comment

Posting Code!

You may write comments in Markdown. This makes code easy to post, as you can write inline code like `<div>this</div>` or multiline blocks of code in triple backtick fences (```) with double new lines before and after.

Code of Conduct

Absolutely anyone is welcome to submit a comment here. But not all comments will be posted. Think of it like writing a letter to the editor. All submitted comments will be read, but not all published. Published comments will be on-topic, helpful, and further the discussion or debate.

Want to tell us something privately?

Feel free to use our contact form. That's a great place to let us know about typos or anything off-topic.