CSS Grid Layout Quiz

Create an account and save your quiz results

Login and save your results

OR

Question 1/15

If a grid has three implicit columns, how can their width be controlled?

Select your answer

Question 2/15

How do you style a specific grid item in a CSS Grid for both columns and rows?

Select your answer

Question 3/15

What happens when
grid-column: 2 / -1;
is defined on a grid item?

Select your answer

Question 4/15

How do you explicitly place a grid item in the second line of the grid using CSS?

Select your answer

Question 5/15

What is indicated by
grid-template-areas: 'a . b';
?

Select your answer

Question 6/15

Which property defines how grid items start and end within individual grid cells?

Select your answer

Question 7/15

What is the default value of
grid-auto-flow
in CSS Grid?

Select your answer

Question 8/15

Which function in CSS Grid can generate repeating track patterns?

Select your answer

Question 9/15

In the CSS Grid, what does the
fr
unit stand for?

Select your answer

Question 10/15

How is the grid item order affected by
grid-auto-flow: row;
?

Select your answer

Question 11/15

What does a fractional unit
fr
represent in a grid layout?

Select your answer

Question 12/15

What does
grid-template-columns: auto 1fr;
imply about the width of the two columns?

Select your answer

Question 13/15

In CSS Grid, what does
display: subgrid;
allow?

Select your answer

Question 14/15

How do you center a grid item in a cell?

Select your answer

Question 15/15

Which CSS Grid property is used to define the number of columns in a grid?

Select your answer

Your Results

You did not answer any questions correctly.

Your Answers

Question 1/15
😊 Your answer was correct 🙁 Your answer was incorrect
If a grid has three implicit columns, how can their width be controlled?

Available answers

The
grid-auto-columns
property defines the size of implicitly created columns in a CSS Grid.
Question 2/15
😊 Your answer was correct 🙁 Your answer was incorrect
How do you style a specific grid item in a CSS Grid for both columns and rows?

Available answers

The syntax
grid-area: 2 / 2 / 4 / 4;
translates to: row-start/column-start/row-end/column-end, specifying the traversal across grid cells.
Question 3/15
😊 Your answer was correct 🙁 Your answer was incorrect
What happens when <pre><code>grid-column: 2 / -1;</code></pre> is defined on a grid item?

Available answers

Using
grid-column: 2 / -1;
the item spans from the second column to the last column line, allowing for dynamic adjustment to grid size.
Question 4/15
😊 Your answer was correct 🙁 Your answer was incorrect
How do you explicitly place a grid item in the second line of the grid using CSS?

Available answers

grid-column: 2 / 3;
positions the item to start at column line 2 and end at column line 3, effectively placing it in the second column.
Question 5/15
😊 Your answer was correct 🙁 Your answer was incorrect
What is indicated by <pre><code>grid-template-areas: 'a . b';</code></pre>?

Available answers

grid-template-areas: 'a . b';
defines three columns where 'a' and 'b' are separated by a column with no grid item (indicated by '.').
Question 6/15
😊 Your answer was correct 🙁 Your answer was incorrect
Which property defines how grid items start and end within individual grid cells?

Available answers

grid-column
is used to define the starting and ending column lines for a grid item, determining how it spans across the grid.
Question 7/15
😊 Your answer was correct 🙁 Your answer was incorrect
What is the default value of <pre><code>grid-auto-flow</code></pre> in CSS Grid?

Available answers

The default value for
grid-auto-flow
is
row
, meaning new items are automatically placed in rows following the available grid lines.
Question 8/15
😊 Your answer was correct 🙁 Your answer was incorrect
Which function in CSS Grid can generate repeating track patterns?

Available answers

The
repeat()
function allows for repeating track sizes or patterns, simplifying the creation of large layouts with heavy repetition.
Question 9/15
😊 Your answer was correct 🙁 Your answer was incorrect
In the CSS Grid, what does the <pre><code>fr</code></pre> unit stand for?

Available answers

The
fr
unit stands for 'fraction', which represents a fraction of the available space in the grid container.
Question 10/15
😊 Your answer was correct 🙁 Your answer was incorrect
How is the grid item order affected by <pre><code>grid-auto-flow: row;</code></pre>?

Available answers

With
grid-auto-flow: row;
, items are placed along the rows first, following the order provided in the HTML source, while accommodating space constraints.
Question 11/15
😊 Your answer was correct 🙁 Your answer was incorrect
What does a fractional unit <pre><code>fr</code></pre> represent in a grid layout?

Available answers

The
fr
unit indicates a fraction of the available space not already occupied by fixed-size tracks.
Question 12/15
😊 Your answer was correct 🙁 Your answer was incorrect
What does <pre><code>grid-template-columns: auto 1fr;</code></pre> imply about the width of the two columns?

Available answers

grid-template-columns: auto 1fr;
implies that the first column fits its content width, while the second column takes up the remaining space.
Question 13/15
😊 Your answer was correct 🙁 Your answer was incorrect
In CSS Grid, what does <pre><code>display: subgrid;</code></pre> allow?

Available answers

The
display: subgrid;
feature lets a nested grid inherit parent tracks, maintaining visual consistency of item alignment.
Question 14/15
😊 Your answer was correct 🙁 Your answer was incorrect
How do you center a grid item in a cell?

Available answers

Centering a grid item within its respective cell involves setting both
justify-self: center;
and
align-self: center;
.
Question 15/15
😊 Your answer was correct 🙁 Your answer was incorrect
Which CSS Grid property is used to define the number of columns in a grid?

Available answers

grid-template-columns
is used to specify the number and sizes of the columns in a CSS Grid layout.