CSS Flashcards

1
Q

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

A

RGB, Hex values, Color Name

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

What CSS properties make up the box model?

A

Margin, Padding, Border

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

Which CSS property pushes boxes away from each other?

A

Margin

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

Which CSS property add space between a box’s content and its border?

A

Padding

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

In CSS, how do you select elements by their class attribute?

A

.

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

In CSS, how do you select elements by their type?

A

enter the name of the element

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

In CSS, how do you select an element by its id attribute?

A

#

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

What is a pseudo-class?

A

A class that only exists after a user interacts with it

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

What are CSS pseudo-classes useful for?

A

It changes the element after interaction

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

Name at least two units of type size in CSS.

A

pixel, em

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

What CSS property controls the font used for the text inside an element?

A

font-family

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

What is the default flex-direction of a flex container?

A

in a row

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

What is the default flex-wrap of a flex container?

A

no wrap

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

Why do two div elements “vertically stack” on one another by default?

A

Vertical because they are block elements

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

What is the default flex-direction of an element with display: flex?

A

a row

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

The transition property is shorthand for which four CSS properties?

A

transition-property, transition-duration, transition-timing-function, and transition-delay.