<html> | |
<head> | |
<title>CSS3 media query test: Absolute width query (screen and (max-width: 800px)). Using style element, media attribute.</title> | |
<link rel="help" href="http://www.w3.org/TR/css3-mediaqueries/#width" /> | |
<style type="text/css" media="screen and (max-width: 800px)"> | |
p { color: green } | |
</style> | |
</head> | |
<body> | |
<p> This text should be green if viewport is at most 800px wide.</p> | |
<div style="width: 800px; background-color:lightblue;">div of width 800px</div> | |
</body> | |
</html> |