CSS Flashcards
What are the names of the individual pieces of a CSS rule?
Ruleset: selector, code block, property:value
In CSS, how do you select elements by their |class| attribute?
. class name
In CSS, how do you select elements by their tag name?
tag name
In CSS, how do you select an element by its |id| attribute?
id name
What CSS properties make up the box model?
Padding, Borders, Margins
Which CSS property pushes boxes away from each other?
Margins
Which CSS property add space between a box’s content and it’s border?
Padding
What is a pseudo-class?
A keyword that let’s you apply a style to an element
What are CSS pseudo-classes useful for?
To style an element in relation to the content and also in relation to external factors
Name two types of units that can be used to adjust |font-size| in CSS
pixels, em/rem
What is the default |flex-direction| of a |flex| container?
Row
What is the default |flex-wrap| of a |flex| container?
Put everyone on one row
Why do two div elements “vertically stack” on one another by default?
Because they are block elements
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, column
What is the minimum number of “columns” that you should put in a “row”?
One