Skip to content

Instantly share code, notes, and snippets.

@colus001
Created February 1, 2016 02:09
Show Gist options
  • Save colus001/91004046776508cc252f to your computer and use it in GitHub Desktop.
Save colus001/91004046776508cc252f to your computer and use it in GitHub Desktop.
Chrome dev tool pixel ratio bug
<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