Prev Demo
CSS3
>
Media Queries
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Demo</title> </head> <body> <h1>Media queries</h1> <style> p { color: Red; } @media only screen and (max-width:600px) { p { color: green; } } </style> <p>Start scaling the browser, as the size of the browser decreases the red color letters changed to the green color.</p> </body> </html>
Note: We DO NOT save your trial code in our database.
Output