HTML Editor
<!DOCTYPE html> <html lang="en-US"> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <style> @media (resolution: 96dpi) { h1{ color: red; } } @media (min-resolution: 97dpi) { h1{ color: blue; } } @media (max-resolution: 95dpi) { h1{ color: green; } } </style> </head> <body> <h1>CSS @media max-resolution</h1> <p><strong>Note</strong>: Check the following</p> <ul> <li>If h1 color is 'red', then your dpi is exactly '96'</li> <li>If h1 color is 'blue', then your dpi is more than or equal to 97dpi</li> <li>If h1 color is 'green', then your dpi is less than 95dpi</li> </ul> </body> </html>
OUTPUT
×

Save as Private