css-responsive-layout Flashcards

1
Q

What is a breakpoint in responsive Web design?

A

A breakpoint is a specific width at which the layout of a webpage changes to better fit the screen on which it is being viewed.

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

One advantage is that it allows the column to scale automatically with the size of the screen.
Another advantage of using a percentage width is that it makes it easier to create a flexible and responsive layout that adjusts to different screen sizes. When you use fixed widths in pixels, you have to manually set different widths for different screen sizes

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

because of source order - cascading

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