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]
}

Related

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.

Desktop

ChromeOperaFirefoxIEEdgeSafari
57445211*1610.1

Mobile / Tablet

iOS SafariOpera MobileOpera MiniAndroidAndroid ChromeAndroid Firefox
10.3NoNo566155

Comments

  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: https://codepen.io/ragdoll/pen/mMbrNj

Submit 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.

icon-anchoricon-closeicon-emailicon-linkicon-logo-staricon-menuicon-nav-guideicon-searchicon-staricon-tag