CSS Code and meaning Flashcards

The objective is to learn some of the coding and what it does

1
Q

Element remains in the same position but now appears invisible

A

visibility:hidden;

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

what display: value removes elements from the flow of a webpage?

A

display:none;

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

in order to center an element inside it’s parent use this code:

A

margin: 0 auto;

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

to center something horizontally in modern browsers use this code:

A

display:flex;
Justify-content: center;

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

allows you to define the desired width to height ratio of an elements box

A

aspect-ratio; ;

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

allows you to set the minimum and max values. Size can change but only up to the set point within the range

A

clamp()

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

If you scroll this element will alway stay in view of your page.

A

position:sticky;

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

positioning feature that is relative to it’s containing block, the position and dimensions of an element.

A

position:absolute;

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

position is always relative to the initial containing block

A

position:fixed;

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

is positioned according to the normal flow of the document, and then offset relative to itself based on the values of top, right, bottom, and left

A

positioned;relative;

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

flex-wrap?

A

flex-wrap

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

flex-direction?

A

flex-direction

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

flex-grow?

A

flex-grow

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

flex-basis?

A

flex-basis

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

pseudo-class that is used to apply styles based on the number of times an element appears in a certain context

A

: nth-child;

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