css Flashcards

1
Q

what are the names of the individual piece of a css rule

A

selector

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
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
3
Q

in css how do you select elements by their type

A

select element name

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

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
5
Q

name 3 different types of values you can use to specify colors in css

A

name,color,hex code,rgb

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

what css properties mak up the box model

A

content,margin,border,padding

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
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
8
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
9
Q

what is a pseudo class

A

another way to target an element

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

what are css pseudo classes useful for

A

when trying to implement special cases, ie) even, odd

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

name at least two units of type size in css

A

rem , px

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

what property controls the font used for text inside and element

A

font-family

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

what is the default direction of flex container

A

row

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

what is the default flex wrap of flex contained

A

no wrap

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

why do two div elements vertically stack on one another by default

A

they are block elements

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

what is the default flex direction of an element with display flex

A

left to right (row)

17
Q

what is the default flex wrap of a flex container

A

no wrap