<html> | |
<body> | |
<p style="color: green">This text should be green if viewport is wider than 30em.</p> | |
<div style="width: 30em; background-color: lightblue;">div of length 30 em</div> | |
<div style="width: 800px; background-color: lightblue;">div of length 800px</div> | |
</body> | |
</html> |