wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CSS flexbox quiz

Total questions: 10

Worksheet time: 6mins

Name
Class
Date
1.

What css rule creates a flexbox container?

a)

flex: box

b)

display: flexbox

c)

flex: container

d)

display: flex

2.

What are the two options for flex-direction?

a)

row

b)

vertical

c)

column

d)

horizontal

3.

Which css value forces flex items onto a new line once the width of the container has been filled?

a)

newline

b)

wrap

c)

continue

d)

float

4.

Which flexbox properties aligns items on the same axis as the flex-direction?

a)

justify-content

b)

align-items

c)

align-content

d)

justify-items

5.

What is a possible value for justify-content?

(a)  

6.

What is the default orientation/flex-direction for flexbox?

a)

column

b)

row

c)

north

d)

south

7.

In this code snippet, where will all the flex item divs be placed?

a)

At the left of the containing div

b)

Centered within the div

c)

At the top of the div

d)

Before the div

8.

What is one benefit of using flexbox?

4 lines
9.

Which properties does flexbox share with CSS grid?

a)

row/column gap

b)

justify-content

c)

row/column start/end

d)

none

10.

Which property will align a flexbox item differently from all others within the same flexbox container?

a)

self-align

b)

override-align

c)

align-self

d)

justify-self