Created
February 1, 2016 02:09
-
-
Save colus001/91004046776508cc252f to your computer and use it in GitHub Desktop.
Chrome dev tool pixel ratio bug
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
<style> | |
.container { | |
width: 100%; | |
} | |
.flex-wrapper { | |
display: flex; | |
} | |
.flex-1 { | |
flex: 1; | |
} | |
.label { | |
width: 200px; | |
} | |
</style> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=no"> | |
<title></title> | |
</head> | |
<body> | |
<div class="container"> | |
<div class="flex-wrapper"> | |
<div class="flex-1"> | |
<p class="label"> | |
THIS IS LABEL with width | |
</p> | |
</div> | |
<div class="flex-1"> | |
<p> | |
LABEL without width | |
</p> | |
</div> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment