css Flashcards
what CSS properties make up the box model?
border, margin, 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 the default flex-direction of a flex container?
row
what is the default flex-wrap of a flex container
nowrap
what are the names of the individual pieces of a CSS rule?
selectors
in CSS, how do you select elements by their class attribute?
dot followed by the class name
in CSS, how do you select elements by their type?
type selector
in CSS, how do you select an element by its id attribute?
pound sign followed by the id name
name three different types of values you can use to specify colors in CSS
hex, rgb, color keywords
what is a pseudo-class?
noted by a colons to allow extra functionality to certain css selectors
what are CSS pseudo-classes useful for?
hover, visited, etc elements, i.e., a different color for a hovered anchor tag, a set color for a visited anchored tag to indicated its been clicked
name at least two units of type size in CSS
px, rem, 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?
row