CSS Flashcards
What are the names of the individual pieces of a CSS rule?
selector, properties, values
How are key/value pairs related to CSS?
manifest as property and value
Name three different types of values you can use to specify colors in CSS.
hex values: #0000,
RGB color values: rgb(0.0,0),
HSL(hue, saturation, lightness)
What are three important considerations for choosing fonts?
readability, theme, target market
Why must you have backup fonts assigned when selecting custom fonts?
in case if it doesn’t work or doesn’t have that font
What CSS properties make up the box model?
margin, border, padding
Which CSS property pushes boxes away from each other?
margin: pushes other stuff away
Which CSS property pushes box content away from its border?
padding: give more space within element itself
What purpose does the CSS Cascade serve?
to select CSS declarations in order
What is source order?
the order that your CSS rules are written
In what situation might you need to apply styling to a single element multiple times in one stylesheet?
font-family, or global responsiveness
What is inheritance?
controls what happens when no value is specified for a property on an element
Why might CSS include this feature?
to save you from having to apply these properties to many elements
Is inheritance a good tool to use for styling? if so, on what occasions?
yes, for text
What is the purpose of !important?
to override styles that are declared somewhere else