Skip to content

Instantly share code, notes, and snippets.

@Qs-F
Last active September 11, 2016 03:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Qs-F/2446a6610029ae0eea0cc58bf48dd602 to your computer and use it in GitHub Desktop.
Save Qs-F/2446a6610029ae0eea0cc58bf48dd602 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title></title>
<style>
body {
display: flex;
flex-direction: column;
height: 100vh;
width: 100vw;
margin: 0;
padding: 0;
}
body > * {
width: 100vw;
display: block;
}
.class1 {
flex: 1;
background: rgb(0, 0, 255);
}
.class2 {
height: 100px;
background: rgb(0, 255, 0);
}
.class3 {
flex: 1;
background: rgb(255, 0, 0);
}
</style>
</head>
<body>
<div class="class1"></div>
<div class="class2"></div>
<div class="class3"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment