CSS Flashcards

1
Q

pseudo selector

A

Pseudo-classes are appended right after the main selector with a colon

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

box model

A

content => padding => border => margin

CSS box model calculates the total width and height of the element by taking padding and border values into account like so:

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

display: inline

A

default behavior take as much space as in need

cant set with

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

display: block

A

break into new line, can set width

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

display: inline-block

A

behavior of both inline and block, it can be set width but also display inline next to each other

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

position:static;

A

which means that they aren’t positioned at all,

element take space one after the other

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

position: relative

A

like position static but take up space as it needs, left, right, top, bottom
refer to the original position of the element

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

position: absolute

A

When you position an element absolutely, it no longer takes up the space it used to and is now essentially ‘floating’ on your screen, above the surrounding elements.

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

flexbox

A

designed as a one-dimensional layout model, and as a method that could offer space distribution between items in an interface and powerful alignment capabilities (either row or column)

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

grid

A

two dimensional structure that also offer space distribution and alignment using cols and rows

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