CSS: Flexbox Flashcards

(22 cards)

1
Q

What is CSS Flex Box?

A

CSS flexbox is a one-dimensional layout model that allows you to arrange elements in rows and columns within a container.

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

What is the CSS Flex Model?

A

This model defines how flex items are arranged within a flex container. Every flex container has two axes: the main axis and the cross axis.

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

what is the “flex-direction” Property?

A

This property sets the direction of the main axis. The default value of flex-direction is row, which places all the flex items on the same row, in the direction of your browser’s default language (left to right or right to left).

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

What is “flex-diretion: row-reverse;”?

A

This reverses the items in the row.

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

What is “flex-direction: column;”?

A

This will align the flex items vertically instead of horizontally.

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

What is “flex-direction: column-reverse;”?

A

This reverses the order of the flex items vertically.

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

What is the “flex-wrap” Property?

A

This property determines how flex items are wrapped within a flex container to fit the available space. flex-wrap can take three possible values: nowrap, wrap, and wrap-reverse.

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

What is “flex-wrap: nowrap;”?

A

This is the default value. Flex items won’t be wrapped onto a new line, even if their width exceed the container’s width.

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

What is “flex-wrap: wrap;”?

A

This property will wrap the items when they exceed the width of their container.

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

What is “flex-wrap: wrap-reverse;”?

A

This property will wrap flex items in reverse order.

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

What is the “flex-flow” Property?

A

This property is a shorthand property for flex-direction and flex-wrap. In this example, we set flex-direction to column and flex-wrap to wrap-reverse.

flex-flow: column wrap-reverse;

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

What is the “justify-content” Property?

A

This property aligns the child elements along the main axis of the flex container.

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

What is “justify-content: flex-start;”?

A

In this case, the flex items will be aligned to the start of the main axis. This could be horizontal or vertical.

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

What is “justify-content: flex-end;”?

A

In this case, the flex items are aligned to the end of the main axis, horizontally or vertically.

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

What is “justify-content: center;”?

A

This centers the flex items along the main axis.

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

What is “justify-content: space-between;”?

A

This will distribute the elements evenly along the main axis.

17
Q

What is “justify-content: space-around;”?

A

This will distribute flex items evenly within the main axis, adding a space before the first item and after the last item.

18
Q

What is “justify-content: space-evenly;”?

A

This will distribute the items evenly along the main axis.

19
Q

What is the “align-items” Property?

A

This property is used to distribute items along the cross axis. Remember that the cross axis is perpendicular to the main axis.

20
Q

What is “align-items: center;”?

A

This is used to center the items along the cross axis.

21
Q

What is “align-items: flex-start;”?

A

This aligns the items to the start of the cross axis.

22
Q

What is “align-items: stretch;”?

A

This is used to stretch the flex items along the cross axis.