Css Flashcards
1
Q
Display block
A
Elements start on a new line and take up the full width available.
2
Q
Display inline
A
Elements stay in line with surrounding content and only take up as much width as necessary.
3
Q
Display inline block
A
The element itself is formatted as an inline element, but you can apply height and width values
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.
5
Q
justify content
A
- Aligns items along the main axis (horizontal in
row
, vertical incolumn
). -
Syntax:
justify-content: flex-start | flex-end | center | space-between | space-around | space-evenly;
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;
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.
- A numeric value where
8
Q
A