16 lines
476 B
HTML
16 lines
476 B
HTML
<html>
|
|
<head>
|
|
<title>CSS3 media query test: Compound media query, absolute values (screen and (max-width: 800px) and (max-height:600px)). Using style element, @media css rule.</title>
|
|
<link rel="help" href="http://www.w3.org/TR/css3-mediaqueries/#width" />
|
|
|
|
<style type="text/css">
|
|
@media screen and (max-width: 800px) and (max-height:600px){
|
|
p { color: green }
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p> This text should be green if viewport is at most 800px x 600px.</p>
|
|
</body>
|
|
</html>
|