CSS Flashcards

(15 cards)

1
Q

what is padding?

A

spacing between the content of the element and the border

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

what is a border?

A

sits on the outside edge of the padding - outer edge of the content

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

what is a margin?

A

space outside the box (border) and pushes any other html elements before and after it away (space between html elements)

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

True or false: items that come later in the style sheet are prioritized over those that come earlier.

A

true

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

what does this tell the elements on the page?

*{
margin: 0;
padding:0;
}

A

tells every element on the page to not have any margin or border unless explicitly told to

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

what is flexbox?

A

accommodates various screen sizes

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

what does this mean?

display:flex;

A

creates a one-dimensional layout- it controls the distribution of its content

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

what is the default flexbox set to?

A

row

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

how do you change a flexbox from row to column?

A

flex-direction: column;

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

how do you get elements to wrap when there is no longer space on one line?

A

flex-wrap: wrap;

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

what does the justify-content property do?

A

allows you to control spacing between child elements

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

what does the default value (flex-start) of justify content do?

A

justifies all elements to the left

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

what does justify-content: flex-end; do?

A

justifies all elements to the right

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

what does justify-content: center; do?

A

positions all elements as close to the center as possible

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

what does justify-content: space-between; do?

A

distributes all empty space between child elements to keep them evenly spaced apart

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