layout-classes Flashcards
Why do two div elements “vertically stack” on one another by default?
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.
What is the default flex-direction of an element with display: flex?
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
What are the three primary components of a page layout? (Which helper classes do you need?)
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.
What is the minimum number of columns that you should put in a row?
You must have at least 1 column in each row.
What is the purpose of a container?
easier to access, manipulate, format, and display what you want in sections, wastes less time have to search irrelevant information.