Skip to content

Instantly share code, notes, and snippets.

@gmassanek
Created October 4, 2012 03:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gmassanek/3831390 to your computer and use it in GitHub Desktop.
Save gmassanek/3831390 to your computer and use it in GitHub Desktop.
BAHHHH Media Query triggering at 874px no 960px
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<style>
body { margin: 0; padding: 0;}
.codemarks {
width: 960px;
height: 500px;
margin: 0 auto;
background: blue;
}
.codemarks {
height: 500px;
margin: 0 auto;
width: 960px;
}
@media only screen and (min-width: 960px) {
.codemarks {
background: green;
}
}
@media only screen and (max-width: 960px) {
.codemarks {
background: red;
}
}
</style>
</head>
<body>
<div id="main_content">
<div class="codemarks"> </div>
</div>
</body>
</html>
@JDLeigh10
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment