CSS Flashcards
What are the names of the individual pieces of a CSS rule?
selector, declaration block, property, property value, CSS Ruleset
in CSS, how do you select elements by their class attribute?
with a .
In CSS, how do you select elements by their type?
by just writing the name of the element
In CSS, how do you select elements by their ID?
with a #
Name 3 different types of values to specify colors in CSS
RGB, hex code, and name
What CSS properties make up the box model?
content, margin, padding, border
what CSS property pushes boxes away from each other?
margin
what CSS property adds space between a box’s content and its border?
padding
what is a pseudo-class?
classes applied by the browser in certain conditions
what are CSS pseudo classes useful for?
styling as a result of user interaction
Name at least 2 units of type size in CSS
pt, px, 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?
nowrap
Why do two div elements “vertically stack” on one another by default?
because they are block