Skip to content

Instantly share code, notes, and snippets.

@indy
Created November 20, 2019 19:54
Show Gist options
  • Save indy/c8bfac88b3be79a1fb7c48d41d280542 to your computer and use it in GitHub Desktop.
Save indy/c8bfac88b3be79a1fb7c48d41d280542 to your computer and use it in GitHub Desktop.
HTML with broken CSS media query
<head>
<style type = text/css>
body{background:yellow;}@media only screen and(max-width:700px){body{background:red;}}
</style>
</head>
<body>
<h1>The background should turn red when the window is narrow</h1>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment