box model Flashcards

1
Q

box model inner to outer

A

content, padding, border, margin

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

content

A

content being considered –> text block, button, image

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

padding

A

space between content and border

adds to overall width and height of the content element

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

border

A

if border is present –> appears on the outer edge of the padding

adds to overall width and height of the content element

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

margin

A

invisible space between the outer edge/border of an element’s box and and the next closest element’s box

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

width

A

sets width of element’s content area

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

height

A

sets height of element’s content area

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

min-width

A

sets the min width an element can be

even if content is set to something smaller –> element wont shrink past this width

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

min-height

A

sets the min height an element can be

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

max-width

A

sets the max width an element can expand to

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

max-height

A

sets the max height an element can expand to

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

px

A

pixels, fixed

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

%

A

percentage of parent container

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

em

A

relative to the font size of the element

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

vw and vh

A

relative to the viewport width and height

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