Css Flashcards
1
Q
define color
A
color #code ;
2
Q
The best point of reference for CSS
A
MDM CSS reference
- common CSS properties
3
Q
What are the three ways to add CSS to HTML
A
- inline
- selector
- style sheet
4
Q
List the types of Selector in a CSS style.
A
- Element – h1{n}
- class – name {n}
- id – #.name { n }
- universal – *{ n }
5
Q
List the specificity order of hierarchy.
A
- Inline
- Id selectors
- Class & attribute & :pseudo-class
- Tag & ::pseudo-element
- Browser defaults
- Inherated style
6
Q
List of combinators
A
- Adjacent – div + p {n}
- General – div ~ p {n}
- Child – div > p {n}
- Descendant – div p {n}
7
Q
Why be wary of combinators
A
Can affect performance
8
Q
Where do you add style to a vue file
A
within the tag at end of file.
9
Q
How is the specificity resolved with rules
A
the rule with more information is greater than the rule with less !
10
Q
Categories of values
A
Pre-defined – ( props )
Colors – hex or text
lenghts & sizes – e.g % or px
functions