layout-classes Flashcards

1
Q

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

A

div elements are block elements so it starts on a new line and they contain that block of code together.

so when each div thats nserted into a layout , inserts as a new row.

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

Flexbox provides a property called flex-direction that specifies
which direction the main axis runs (which direction the flexbox children are laid out in).

By default this is set to row, which causes them to be laid out in a row in the direction your browser’s default language works in

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

three primary parts: an element to be the container, one or more elements acting as a row, and at least one column element in each of the row elements.

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

You must have at least 1 column in each row.

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

easier to access, manipulate, format, and display what you want in sections, wastes less time have to search irrelevant information.

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