Skip to content

Instantly share code, notes, and snippets.

@jonmann20
Created September 15, 2014 18:50
Show Gist options
  • Save jonmann20/8775fa007d6437095b22 to your computer and use it in GitHub Desktop.
Save jonmann20/8775fa007d6437095b22 to your computer and use it in GitHub Desktop.
Chrome Media Query Bug (15 Sept. 2014)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
div {
border: 1px solid; /* for visualization only */
display: inline-block;
}
.one {
min-width: 460px;
width: 44%;
}
.three {
min-width: 161px;
margin-right: 5px;
float: right;
}
@media (max-width: 715px) {
.three {
display: block;
float: none;
margin-top: 10px;
}
}
</style>
</head>
<body>
<div class="one">
oneA<br>
oneB<br>
oneC
</div>
<div class="bar">
twoA<br>
twoB<br>
twoC
</div>
<div class="three">
threeA<br>
threeB<br>
threeC<br>
</div>
</body>
</html>
@jonmann20
Copy link
Author

Third div becomes improperly positioned after resizing the page.

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