Prelims CSS - Display Flashcards

1
Q

property is used to specify how an element is shown on a web page.

A

display

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

ALWAYS starts on a new line and takes up the full width available (stretches out to the left and right as far as it can)

A

A block-level element

Examples of block-level elements:

<div>
<h1> - <h6>
<p>
<form>
<header>
<footer>
<section>
</section></footer></header></form></p></h6></h1></div>

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

DOES NOT start on a new line and only takes up as much width as necessary.

A

An inline element

Examples of inline elements:

<span>
<a>
<img></img></a></span>

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

Displays an element as an inline element

A

inline

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

Displays an element as a block element

A

block

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

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

A

contents

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

Displays an element as a block-level flex container

A

flex

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

Displays an element as a block-level grid container

A

grid

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

Displays an element as an inline-level block container. The element itself is formatted as an inline element, but you can apply height and width values

A

inline-block

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

Displays an element as an inline-level flex container

A

inline-flex

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

Displays an element as an inline-level grid container

A

inline-grid

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

The element is displayed as an inline-level table

A

inline-table

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

Let the element behave like a <li> element

A

list-item

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

Displays an element as either block or inline, depending on context

A

run-in

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

Let the element behave like a <table> element

A

table

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

Let the element behave like a <caption> element

A

table-caption

17
Q

Let the element behave like a <colgroup> element

A

table-column-group

18
Q

Let the element behave like a <thead> element

A

table-header-group

19
Q

Let the element behave like a <tfoot> element

A

table-footer-group

20
Q

Let the element behave like a <tbody> element

A

table-row-group

21
Q

Let the element behave like a <td> element

A

table-cell

22
Q

Let the element behave like a <col> element

A

table-column

23
Q

Let the element behave like a <tr> element

24
Q

The element is completely removed

25
Sets this property to its default value
initial
26
Inherits this property from its parent element
inherit
27
also hides an element. However, the element will still take up the same space as before. The element will be hidden, but still affect the layout:
`visibility:hidden;`