How to use "@media" rule in css, and what are the use of it, and it features.explain | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How to use "@media" rule in css, and what are the use of it, and it features.explain

9th May 2018, 11:13 AM
Sonu Majhi
Sonu Majhi - avatar
3 Answers
9th May 2018, 11:35 AM
Ulisses Cruz
Ulisses Cruz - avatar
+ 2
media queries are commonly used to make a website more responsive. You can change the CSS of elements depending on screen size. For example, if the user is viewing the website on a phone you can remove any outer margin, size down icons, etc.
10th May 2018, 12:16 AM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
0
Well...I normally use them to make a responsive website. Still.. I'm sure it has more properties.
10th May 2018, 3:04 PM
Fredkishala
Fredkishala - avatar