I will keep it short. Using Zurb Foundation 5 to create a site. Media requests do not work. The code is as follows:
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>...</title>
<link rel="stylesheet" href="css/foundation.css" />
<link rel="stylesheet" href="css/styles.css" />
<script src="js/vendor/modernizr.js"></script>
</head>
The corresponding CSS is configured as follows:
#examplediv {
style:background-image;
}
@media only screen and (max-width: 40em) {
#examplediv {
style:different-background-image;
}
}
Using em in a media request, for this page
Any ideas? Come here. Thanks!
source
share