This does not work as I expected. I am testing in a desktop browser (Chrome, Windows 7). Whatever size the browser window have the max-width below is 800px.
What should I do to make it change when the browser window width is less than 1000px?
<html>
<head>
<title></title>
<style type="text/css">
.flex-container {
max-width: 800px;
height: 180px;
border: red 2px solid;
}
@media (max-device-width: 1000px) {
.flex-container {
max-width: 400px;
}
}
</style>
</head>
<body>
<div class="flex-container">
</div>
</body>
</html>