Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
November 10, 2017 07:00 pm GMT

Grid areas and the element that occupies them arent necessarily the same size.

That's a good little thing to know about CSS grid.

I'm sure that is obvious to many of you, but I'm writing this because it was very much not obvious to me for far too long.

Let's take a close look.

There are two players to get into your mind here:

  1. The grid area, as created by the parent element with display: grid;
  2. The element itself, like a <div>, that goes into that grid area.

For example, say we …


Grid areas and the element that occupies them aren’t necessarily the same size. is a post from CSS-Tricks


Original Link: https://css-tricks.com/grid-areas-element-occupies-arent-necessarily-size/

Share this article:    Share on Facebook
View Full Article

CSS Tricks

A Web Design Community curated by Chris Coyier

More About this Source Visit CSS Tricks