21 lines
680 B
HTML
21 lines
680 B
HTML
<html>
|
|
<head>
|
|
<title>CSS3 media query test: media query testing constraints with relative values (screen and (min-height: 30ex)). Using style element, @media css rule.</title>
|
|
<link rel="help" href="http://www.w3.org/TR/css3-mediaqueries/#width" />
|
|
|
|
<style type="text/css">
|
|
p { color: red }
|
|
@media screen and (min-height: 30ex) {
|
|
p { color: green }
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<p> This text should be green if height is at least 30ex .</p>
|
|
|
|
<div style="display:inline; float:left; height: 30ex; background-color: lightblue;"> div of height 30ex </div>
|
|
<div style="display:inline; float:left; height: 600px; background-color: lightblue;"> div of height 600px </div>
|
|
</body>
|
|
</html>
|