Intermediate HTML & CSS
Q76 / 100

What does the CSS "gap" property do when used in a flex or grid container?

Correct! Well done.

Incorrect.

The correct answer is B) Sets the spacing between rows and/or columns of flex/grid items, without adding space at the outer edges of the container

B

Correct Answer

Sets the spacing between rows and/or columns of flex/grid items, without adding space at the outer edges of the container

Explanation

gap (shorthand for row-gap and column-gap) creates consistent spacing between grid/flex items without requiring margins, which could otherwise add unwanted space at container edges.

Progress
76/100