W2: CSS Layout Display and Overflow Flashcards

1
Q

Specifies if/how an element is displayed?

A

display property

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

The default display value for most elements is ___ or ____.

A

block or inline.

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

A _____-level element always starts on a new line and takes up the full width available.

A

Block-level element

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

An ______-level element does not start on a new line and only takes up as much width as necessary.

A

Inline-level element

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

It is commonly used with JavaScript to hide and show elements without deleting and recreating them.

A

display: none;

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

What element uses display: none; as default?

A
<script>
element.
</script>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Controls what happens to content that is too big to fit into an area?

A

Overflow property

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

By default, the overflow value is ____ meaning that it is not clipped and it renders outside the element’s box.

A

visible or overflow: visible;

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

With the ____ value, the overflow is clipped, and the rest of the content is hidden.

A

hidden or overflow: hidden;

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

The overflow is clipped and a scrollbar is added to scroll inside the box horizontally and vertically.

A

scroll or overflow: scroll;

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

This overflow value is similar to scroll, but it adds scrollbars only when necessary.

A

auto or overflow: auto;

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