Week 6 - CSS Part 3 Flashcards

1
Q

What does the box model consist of?

A

From out to in:

Margin, border, padding, content, background image/colour behind the content.

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

What’s the difference between margin and padding?

A

Margin is used to separate elements, whereas padding is used to changing distance between the content and border.

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

What do auto values do and how do they work?

A

Auto values will automatically assign a value to whatever the selector is.

In terms of margin: auto, this will center the content horizontally.

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

How do we layout a page with float?

A

Float is used for allowing elements to move around one another.

Clear stops elements from coming up due a float, and allows for things such as footers to stay at the bottom of the page.

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

What does responsive design mean?

A

Includes the webpage being able to adapt to different devices and their viewports in order to be displayed properly.

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

How can we implement responsive design?

A

meta viewport, media types, media queries

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

Meta Viewport

A

Used to set the initial scale that a web page will be presented in a browser.

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

Media Type

A

Used to specify the different style rules. This includes whether we’re going to be styling @media for screen, print, speech, etc.

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

Media Queries

A

Used to define style rules for different media types.

This is the whole statement which can also consist of a media type like screen or print.

*Marked with using @media …

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

z-index

A

Changes the stacking of elements

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

Fluid Layout

A

Using relative units to adapt to the display/viewport.

Can do this through using % values for width.

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

Fixed Layout

A

Layout based on specific values and not being adaptable.

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

CSS Pre-Processors

A

Helps to write maintainable, well-structured code and reduces the amount of CSS written.

Eg: Less, Sass, Stylus

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

CSS Frameworks

A

A third-party packaged collection of rules for extra functions.

Eg: Bootstrap

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