Css Test Flashcards

1
Q

What does CSS Flexbox stand for?

A

CSS Flexible Box Layout

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

True or False: Flexbox is designed for one-dimensional layouts.

A

True

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

What property is used to define a flex container?

A

display: flex;

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

Fill in the blank: The main axis can be defined using the ______ property.

A

flex-direction

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

Which value of flex-direction arranges items from left to right?

A

row

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

What property controls the alignment of items along the main axis?

A

justify-content

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

True or False: The default value of flex-direction is column.

A

False

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

Which property is used to control the spacing between flex items?

A

gap

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

What are the possible values for justify-content? (List any two)

A

flex-start, flex-end, center, space-between, space-around

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

What is the purpose of the align-items property?

A

To align flex items along the cross axis.

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

Fill in the blank: The ______ property defines how much a flex item will grow relative to the rest of the flex items.

A

flex-grow

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

Which property can be used to specify the size of a flex item?

A

flex-basis

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

True or False: Flex items can be nested within each other.

A

True

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

What value of align-items centers flex items vertically in a row layout?

A

center

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

What does the property flex-shrink do?

A

It defines the ability for a flex item to shrink if necessary.

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

Which property is used to reverse the order of flex items?

A

flex-direction: row-reverse; or flex-direction: column-reverse;

17
Q

What is the default value of align-items?

18
Q

Fill in the blank: To make a flex item take equal space, use ______: 1.

19
Q

What does the property flex-wrap do?

A

It controls whether flex items should wrap onto multiple lines.

20
Q

What is the default value of flex-wrap?

21
Q

True or False: Flexbox is not compatible with older versions of Internet Explorer.

22
Q

What does the value ‘space-between’ do in justify-content?

A

It distributes items evenly, with the first item at the start and the last item at the end.

23
Q

Which property would you use to align a single flex item differently from the rest?

A

align-self

24
Q

What does the value ‘flex-start’ do in justify-content?

A

It aligns items to the start of the flex container.

25
Q

Fill in the blank: The ______ property allows you to specify the order of flex items.

26
Q

What is the purpose of the flex-flow property?

A

It is a shorthand for flex-direction and flex-wrap.

27
Q

What is the effect of using ‘align-content’?

A

It aligns flex lines within the flex container when there is extra space.