CSS Flashcards
Name three different types of values you can use to specify colors in CSS.
RGB, Hex values, Color Name
What CSS properties make up the box model?
Margin, Padding, 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
In CSS, how do you select elements by their class attribute?
.
In CSS, how do you select elements by their type?
enter the name of the element
In CSS, how do you select an element by its id attribute?
#
What is a pseudo-class?
A class that only exists after a user interacts with it
What are CSS pseudo-classes useful for?
It changes the element after interaction
Name at least two units of type size in CSS.
pixel, em
What CSS property controls the font used for the text inside an element?
font-family
What is the default flex-direction of a flex container?
in a row
What is the default flex-wrap of a flex container?
no wrap
Why do two div elements “vertically stack” on one another by default?
Vertical because they are block elements
What is the default flex-direction of an element with display: flex?
a row