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.
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.