FlexBox Flashcards
How do you initiate flexbox?
Display: flex
Make containers within main container into columns or rows?
flex-direction: row
flex-direction: row-reverse
flex-direction: column
flex-direction: column-reverse
Describe the flex-box axes.
Main = x Cross = y
What does justify content do?
Distributes content across main axis. Imagine boxes distributed horizontally
|■ ■ ■ ■|
Default justify content distribution?
justify-content: flex-start
|■ ■ ■ |
Name 6 justify-content properties
justify-content:
a) flex-start
b) flex-end
c) center
d) space-between
e) space-around
f) space-evenly
Describe this justify content:
|■ ■ ■ |
justify-content: flex-start
Describe this justify content:
| ■ ■ ■|
justify-content: flex-end
Describe this justify content:
| ■ ■ ■ |
justify-content: center
Describe this justify content:
|■ ■ ■|
justify-content: space-between
Describe this justify content:
| ■ ■ ■ |
justify-content: space-around
left & right only have half as much space
Describe this justify content:
| ■ ■ ■ |
justify-content: space-evenly
What are the first 3 flexbox properties to initialize your design?
- Display: flex;
- flex-direction: row;
- Set size of child elements and parent elements
- justify-content: space-evenly,
What does flex-wrap do?
Determines if elements will wrap along main axis onto a new line (if horizontal) or new column (if vertical)
What is the default flex-wrap property value
flex-wrap: nowrap