CSS Styling Flashcards
Name three different types of values you can use to specify colors in CSS.
RGB, hex codes, color names
What are three important considerations for choosing fonts?
weight
style
stretch
Why must you have backup fonts assigned when selecting custom fonts?
For a fallback
What CSS properties make up the box model?
Margin
Border
Padding
Which CSS property pushes boxes away from each other?
Margins
Which CSS property pushes box content away from its border?
Padding
What purpose does the CSS Cascade serve?
What styling should ultimately
be applied to an element
What is source order?
Where you have your style sheet
In what situations might you need to apply styling to a single element multiple times in one stylesheet?
mobile response
What is inheritance?
it adopts what the root element has
Why might CSS include this feature?
custom features for general rules
Is inheritance a good tool to use for styling? If so, on what occasions?
Makes things simple on the style sheet
What is the purpose of !important
?
under no circumstance should that element be anything other then what it is
When is !important
a good tool to use?
NO!
everything that follows has to be !Important
What is specificity?
matching rules which are compose if different sorts on CSS sectors