CSS Flashcards
what are the names of the individual pieces of a css rule?
selector, declaration
in css, how do you select elements by their class attribute?
.className
in css, how do you select elements by their type?
the name of the element
in css, how do you select an element by its id attribute?
IDname
name 3 different types of values you can use to specify colors in css
rbg values, hex codes, color names.
what css properties make up the box model?
margin, padding, border
which css property pushes boxes away from each other?
margin
which css property adds space between a box’s content and its border?
padding
what is a pseudo-class?
specifies a special state of the selected element
what are css pseudo-classes useful for?
changing styles based on user interaction
name at least two units of type size in css
pixels, rem
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?
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
divs are block elements