Css Grid Layout Flashcards

Learn CSS Grid Layout (aka “Grid” or “CSS Grid”): https://css-tricks.com/snippets/css/complete-guide-grid/

1
Q

What is css grid?

A

css grid is a two-dimensional grid-based layout system that, compared to any web layout system of the past, completely changes the way we design user interfaces

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is css grid solving?

A

layout problems and functionality like vertical centering

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What did web devs needed to do to build the layout of a webpage before css grid?

A

tables, then floats, positioning and inline-block

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

When did css grid become supported by most browsers?

A

March 2017

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the syntax to get started with css grid? (display)

A

display: grid

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the syntax to set the column and row sizes?

A

grid-template-columns for columns and grid-template-rows for rows

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the syntax to set the child elements into the grid?

A

grid-column for child columns and grid-row for child rows

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Does source order matter in css grid?

A

No

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Why is css grid one of the most powerful css modules ever introduced?

A

You are able to define one layout of the entire page then completely rearrange it to accommodate a different screen width all with only a couple lines of css

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a grid container?

A

The element on which display: grid is applied. It’s the direct parent of all the grid items. In this example container is the grid container

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a grid item?

A

The children (i.e. direct descendants) of the grid container. Here the item elements are grid items, but sub-item isn’t

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a Grid Line?

A

The dividing lines that make up the structure of the grid. They can be either vertical (“column grid lines”) or horizontal (“row grid lines”) and reside on either side of a row or column. Here the yellow line is an example of a column grid line

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a Grid Cell?

A

The space between two adjacent row and two adjacent column grid lines. It’s a single “unit” of the grid. Here’s the grid cell between row grid lines 1 and 2, and column grid lines 2 and 3

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is a Grid Track?

A

The space between two adjacent grid lines. You can think of them as the columns or rows of the grid. Here’s the grid track between the second and third-row grid lines.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is a Grid Area?

A

The total space surrounded by four grid lines. A grid area may be composed of any number of grid cells. Here’s the grid area between row grid lines 1 and 3, and column grid lines 1 and 3.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly