CSS Flashcards

1
Q

Display Property

A

Specifies the display behavior (the type of rendering box) of an element.

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

display : inline;

A

Any height and width properties will have no effect

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

display : block;

A

It starts on a new line, and takes up the whole width

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

display : contents;

A

Makes the container disappear, making the child elements children of the element the next level up in the DOM

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

display : flex;

A

Displays an element as a block-level flex container

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

display : grid;

A

Displays an element as a block-level grid container

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

display : inline-block;

A

The element itself is formatted as an inline element, but you can apply height and width values

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

Box Model

A

The element’s content, padding, border, and margin determine the space occupied by the element and its relation to other elements in the page.

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

Margin Collapse

A

Top margin and bottom margin collapse and only the largest of the two is used.

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