What are the names of the individual pieces of a CSS rule?
2. declarations
In CSS, how do you select elements by their class attribute?
using the period symbol followed by the name of the class element you want selected
In CSS, how do you select elements by their type?
by matching the elements name
In CSS how do you select an element by its id attribute?
using a hash symbol followed by the name of the id
Name three different types of values you can use to specify colors in CSS
What CSS properties make up the box model?
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?
What are CSS pseudo-classes useful for?
Name at least two units of type size in CSS
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 divs are block elements and take up the width of the full line.
What is the default flex-direction of an element with display: flex?
row - left to right
What is the default value for the position property of HTML elements?
static
What are the four box offset properties?
top, bottom, left, right
What does the transform property do?
CSS property that lets you rotate, scale, skew, or translate an element
Give four examples of CSS transform functions
rotate ( )
translate ( )
scale ( )
skew ( )
The transition property is shorthand for which four CSS properties?
transition-delay
transition-duration
transition-property
transition-timing-function
What are the four components of “the cascade”?
source order
inheritance
Specificity
!important
What does the term ‘source order’ mean with respect to CSS?
How is it possible for the styles of an element to be applied to its children as well without an additional CSS rule?
inheritance