CSS Styling Flashcards

1
Q

Name three different types of values you can use to specify colors in CSS.

A

RGB, hex codes, color names

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

What are three important considerations for choosing fonts?

A

weight
style
stretch

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

Why must you have backup fonts assigned when selecting custom fonts?

A

For a fallback

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

What CSS properties make up the box model?

A

Margin
Border
Padding

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

Which CSS property pushes boxes away from each other?

A

Margins

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

Which CSS property pushes box content away from its border?

A

Padding

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

What purpose does the CSS Cascade serve?

A

What styling should ultimately

be applied to an element

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

What is source order?

A

Where you have your style sheet

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

In what situations might you need to apply styling to a single element multiple times in one stylesheet?

A

mobile response

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

What is inheritance?

A

it adopts what the root element has

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

Why might CSS include this feature?

A

custom features for general rules

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

Is inheritance a good tool to use for styling? If so, on what occasions?

A

Makes things simple on the style sheet

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

What is the purpose of !important?

A

under no circumstance should that element be anything other then what it is

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

When is !important a good tool to use?

A

NO!

everything that follows has to be !Important

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

What is specificity?

A

matching rules which are compose if different sorts on CSS sectors

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

How is specificity calculated?

A

weight that is applied to a given CSS declaration

17
Q

What is the order of selector strengths for CSS specificity (commonly referred to as the Specificity Hierarchy)?

A

Type
class
ID

18
Q

What is the CSS Cascade?

A

source and core of CSS style style sheet

19
Q

What are CSS pseudo-classes useful for?

A

table , thead, tbody tr

20
Q

What does the transform property do?

A

visually manipulate an element by skewing, rotating and translating

21
Q

What is the difference between the :first-child pseudo selector and the :last-child pseudo selector?

A

first child then the last child