Css Flashcards

1
Q

define color

A

color #code ;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

The best point of reference for CSS

A

MDM CSS reference

  • common CSS properties
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the three ways to add CSS to HTML

A
  • inline
  • selector
  • style sheet
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

List the types of Selector in a CSS style.

A
  • Element – h1{n}
  • class – name {n}
  • id – #.name { n }
  • universal – *{ n }
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

List the specificity order of hierarchy.

A
  1. Inline
  2. Id selectors
  3. Class & attribute & :pseudo-class
  4. Tag & ::pseudo-element
  5. Browser defaults
  6. Inherated style
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

List of combinators

A
  1. Adjacent – div + p {n}
  2. General – div ~ p {n}
  3. Child – div > p {n}
  4. Descendant – div p {n}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Why be wary of combinators

A

Can affect performance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Where do you add style to a vue file

A

within the tag at end of file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How is the specificity resolved with rules

A

the rule with more information is greater than the rule with less !

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Categories of values

A

Pre-defined – ( props )
Colors – hex or text
lenghts & sizes – e.g % or px
functions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly