Media Queries Flashcards

1
Q

What are media queries used for?

A

To adapt the display based on screen size

Media queries allow for responsive design by applying different styles based on the characteristics of the device.

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

Provide an example of a media query.

A

.gauche, .droite { width: 20%; } with a change to 100% for small screens

This example demonstrates how to set different widths for elements based on screen size.

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