CSS Flashcards
What CSS properties make up the box model?
Margin, Padding, and border
Which CSS property pushes boxes away from each other?
Margin
Which CSS property add space between a box’s content and its border?
Padding
What is a pseudo-class?
It is a keyword added to a selector that specifies a special state of the selected element(s)
What are CSS pseudo-classes useful for?
Add functionality
Name two types of units that can be used to adjust font-size in CSS
Px, Ems
What CSS property controls the font used for the text inside an element?
font-family property
What is the default flex-direction of a flex container?
Row
What is the default flex-wrap of a flex container?
Nowrap
Why do two div elements “vertically stack” on one another by default?
Because its a block element
What is the default flex-direction of an element with display: flex?
Row
What are the three primary components of a page layout? (Which helper classes do you need?)
Container, row, and column
What is the minimum number of columns that you should put in a row
1
What is the purpose of a container?
To “contain” the entire layout and give the whole layout a minimum width. Make the layout organized.
What is the default value for the position property of HTML elements?
position: static;