css-layout-classes Flashcards

1
Q

Why do two div elements “vertically stack” on one another by default?

A

Because they are block elements.

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

What is the default flex-direction of an element with display: flex?

A

row

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

What are the three primary components of a page layout? (Which helper classes do you need?)

A

The three primary components of a page layout are the header, the main content area, and the footer. These components are typically defined using HTML elements such as header, main, and footer.o control the layout and styling of these elements, you can use CSS helper classes such as .header, .main, and .footer.

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

What is the minimum number of columns that you should put in a row?

A

1 column

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

What is the purpose of a container?

A

a container is a common design pattern used to wrap a group of HTML elements into a single container, with the goal of applying consistent styling and layout to the contained elements.

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