Created
September 15, 2014 18:50
-
-
Save jonmann20/8775fa007d6437095b22 to your computer and use it in GitHub Desktop.
Chrome Media Query Bug (15 Sept. 2014)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Third div becomes improperly positioned after resizing the page.