css Flashcards
what are the names of the individual piece of a css rule
selector
in css how do you select elements by their class attribute
.
in css how do you select elements by their type
select element name
how do you select an element by its id attribute
#
name 3 different types of values you can use to specify colors in css
name,color,hex code,rgb
what css properties mak up the box model
content,margin,border,padding
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
another way to target an element
what are css pseudo classes useful for
when trying to implement special cases, ie) even, odd
name at least two units of type size in css
rem , px
what property controls the font used for text inside and element
font-family
what is the default direction of flex container
row
what is the default flex wrap of flex contained
no wrap
why do two div elements vertically stack on one another by default
they are block elements