Css Flashcards

1
Q

Display block

A

Elements start on a new line and take up the full width available.

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

Display inline

A

Elements stay in line with surrounding content and only take up as much width as necessary.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
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
4
Q

flex-direction options

A
  • row (default): Items flow horizontally from left to right.
  • row-reverse: Items flow horizontally from right to left.
  • column: Items flow vertically from top to bottom.
  • column-reverse: Items flow vertically from bottom to top.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

justify content

A
  • Aligns items along the main axis (horizontal in row, vertical in column).
  • Syntax: justify-content: flex-start | flex-end | center | space-between | space-around | space-evenly;
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Align items

A
  • Aligns items along the cross axis (perpendicular to the main axis).
  • Syntax: align-items: flex-start | flex-end | center | baseline | stretch;
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Flex grow

A
  • Determines how much a flex item will grow relative to others.
    • A numeric value where 0 (default) means the item will not grow.
    • Positive numbers determine the growth ratio compared to other items.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly