Responsiveness Flashcards

(27 cards)

1
Q

In flexbox what is main vs cross axis?

A

Main = main direction of your flex box

Cross = opposite direction of main axis

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

In flexbox, what is main size vs cross size?

A

Main size = length of main axis

Cross size = length of cross axis

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

What property creates a flex box?

A

.container {
Display : flex ( or inline flex)

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

How to code direction of your flex box?

A

Property = flex -direction

Values:
Row = L to R
Row - reverse = R to L
Column = top to Bottom
Column - reverse = bottom to top

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

Flex items will stay on one line. How to break into multiple lines?

A

.container {
Flex - wrap : nowrap, wrap (top to bottom), or wrap-reverse

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

How to write short hand for a flex box direction and if it wraps or not?

A

.container {

Flex-flow : column wrap ;

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

How to control the extra space around your items in your flexbox?

A

.container {

Property = justify - content

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

How do you align your flex items along your CROSS axis of flex box?

A

.container {
Property = align - items

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

When choosing the spacing of your flex items. Which property is cross axis vs main axis?

A

Cross axis = align - items
Main axis = justify - content

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

You want to make a media query for all media types between 400px and 900px

A

@ media all and ( min - width : 400px ) and ( max - width : 900 px )

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

How to make your sections stack for smaller screens like mobile phones?

A

Make the section widths = 100%

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

How to remove something completely from a page vs making it invisible?

A

Remove = display : none

Hide = visibility : hidden

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

Make flex items line up on the far Left of main axis. Far right?

A

L = Justify - content : flex - start

R = justify - content : flex - end

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

How to center flex items along the main axis?

A

Justify - content : center

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

You want your items to be evenly spaced along main - axis but have first and last item touch the border.

A

Justify - content : space - between ;

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

Difference between the following justify - content values?

Space - around
Space - evenly

A

Space - around = equal space on both sides of item

Space - evenly = equal space between all items

17
Q

What are the different values for the property, align - items?

A

Flex - start , flex - end, center, stretch, baseline

18
Q

When using “ align - items “, what is stretch vs baseline value?

A

Stretch = all items fill container

Baseline = baselines of all items line up

19
Q

You’ve broken your flex container into multiple lines and now want to align each of them within the container. What property and values?

A

Align - content : flex - start, flex - end, center, stretch, space - between , space - around ;

20
Q

You have multiple rows in your flex - container and want to control the gap between them. How?

A

Gap = both sides

Row - gap

Column - gap

21
Q

You want the items in your flex container to automatically size up to fill the space they get.

A

.item {
Flex - grow : 1 (2, 3, 4 )

1 = all equal
2 = twice as much space…

22
Q

You want the items in your flex container to shrink as necessary in relation to flex container.

A

.item {
Flex - shrink : 1, 2, 3, or more

23
Q

You want to lock in the default size of a flex item before remaining space is distributed.

A

.item {
Flex - basis : auto

24
Q

How to assign width to flex items?

A

Flex - basis : < length integer >

25
Flex - basis vs width when using flex box?
Use flex - basis = better flexibility and responsiveness.
26
when you have your items lined on your main axis, and want to align only one specifiy item on the cross axis... how?
select that item, and use the property, " align-self"
27
align-items vs align-content
align items = where they are on cross axis align-content = how far apart between the wrap lines