Responsive Layout Flashcards

1
Q

Define CSS Media Query

A

a set of CSS rules that get applied based on device or characteristics

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

Define min-width and max-width

A

At min-width the target will not become smaller than than the given value and at max-width the target will not become bigger than the given value but can be anywhere in between.

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

By default ‘display:flex’ creates:

A

The element behaves like a block element and lays out its content according to the flexbox model

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

Define flex-basis

A

flex-basis is the size of flex items before they are placed into a flex container

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

What’s the flex-basis formula?

A

content -> width -> flex-basis (limited by min and max width)

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

‘justify-content’ property:

A

lets you control the position and alignment of flex items on the main axis and how space should be distributed in a flex container

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

What will margin: auto do to a flex item

A

Margin auto absorbs any extra space around a flex item and push other flex items into different positions

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

The order property is a flex-container property? True or False

A

False, the order property can only be applied to a flex item

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

The default order value is what for flex-items

A

0

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

What flex property allows us to position, align, and distribute space between our items?

A

justify-content

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

‘flex-grow’ is a flex item only property - true or false

A

True

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

What will ‘flex-grow: 1;’ do to a single flex item

A

That item will take 1x as much space relative to the other items.

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

Define the ‘flex’ shorthand property

A

This property consist of the flex: ‘flex-grow’ ‘flex-basis’ & ‘flex-shrink’

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

What happens when we use the flex shorthand with flex-basis being set to it’s default 0

A

When the viewport gets narrow the space is not distributed because the items can shrink all the way down to 0

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

What effect does margin: auto have on flex items?

A

It effects item alignment because it absorbs any extra around a flex item and pushes other flex items into different positions

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

Short hand property for flex-direction and flex-wrap and give the order of values.

A

flex-flow: ‘row’ ‘wrap’