How do I display a wide-screen wide web site on an XGA screen (1024px
) in Chrome 26 on Windows XP. Of course, I can zoom out in Chrome, but then still the < 1220px
media query fires , bummer! So I do not get the >= 1220px
version of the web site.
What can I do?
With Firefox it works: I zoom out, and then the >= 1220px
media query fires, great! But it's not Chrome, on which I want to test the web site as well.
Source code for test web page:
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8>
<title>Test</title>
<link rel="stylesheet" type="text/css" media="screen" href="index.css">
<style>
p {
color: black;
}
@media (min-width: 1220px) {
p {
color: red;
}
}
</style>
<script>
window.addEventListener("resize", function () {
console.log(window.innerWidth);
});
</script>
</head>
<body>
<p>Turns red for window width >= 1220px</p>
</body>
</html>