CSS Responsive Layout Flashcards

1
Q

What is a breakpoint in responsive Web design?

A

“point” at which a website’s content and design will adapt in a certain way in order to provide the best possible user experience

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
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

50% allows you to resize with the page
and with the parent object size
if it is fixed the object will take too little space if the page shrinks

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
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

CSS reads up to down so since it is on the bottom it takes the latest rule so it has a lower min width so it takes more options

source order issue
(rule priority)

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