CSS Flashcards
What are the names of the individual pieces of a CSS rule?
declaration block, selector, property, value
In CSS, how do you select elements by their class attribute?
.name of the class
In CSS, how do you select elements by their tag name?
name of the tag
In CSS, how do you select an element by its id attribute?
name of the id
Name three different types of values you can use to specify colors in CSS.
color codes, color name, and rgb values.
What CSS properties make up the box model?
height, width, border, margin, and 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?
a selector that chooses elements that are in a specific state.
What are CSS pseudo-classes useful for?
To make things easier for us when we are coding and want to choose something specific.
Name two types of units that can be used to adjust font-size in CSS.
rem and px
What CSS property controls the font used for the text inside an element?
font-family
What should you use to resize font?
rem not em.
What is the default flex-direction of a flex container?
flex
What is the default flex-wrap of a flex container?
wrap