CSS Flashcards

1
Q

What does the transform property do?

A

applies a 2D or 3D transformation to an element.

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

Give four examples of CSS transform functions.

A

translateX, translateY, rotateX, rotateY, skew, matrix3d, scale

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

The transition property is shorthand for which four CSS properties?

A

transition-property, transition-duration, transition-timing-function, and transition-delay.

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

Give two examples of media features that you can query in an @media rule.

A

min-width, width, min-height, height , max-width

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

Which HTML meta tag is used in mobile-responsive web pages?

A

viewport

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

What is a breakpoint in responsive Web design?

A

the point at which the content and design of a website changes to adapt to different device screen sizes

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

What is the advantage of using a percentage (e.g. 50%) width instead of a fixed (e.g. px) width for a “column” class in a responsive layout?

A

requires less media queries

scales with the browser size

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

If you introduce CSS rules for a smaller min-width after the styles for a larger min-width in your style sheet, the CSS rules for the smaller min-width will “win”. Why is that?

A

source order

because its below and is read after

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