0

How to add media query in html file

Html 5 learning

30th Jul 2020, 3:54 AM
Ajay Gupta
Ajay Gupta - avatar
3 ответов
+ 1
You can add media query in css file. After all your styling finish. Choose break point and set the changes for that breakpoint. Let here you css style finished. @media screen and (max-width:600px){ body{color:red;} } @media screen and (min-width:601px){ body{color:green;} } Now for width less than 600px red text Above 600px green text.
30th Jul 2020, 4:04 AM
Divya Mohan
Divya Mohan - avatar
+ 2
Thankyou..
30th Jul 2020, 5:08 AM
Ajay Gupta
Ajay Gupta - avatar
0
By using <style> tags.
30th Jul 2020, 4:00 AM
Lakshay Mittal
Lakshay Mittal - avatar