Last active
September 11, 2016 03:38
-
-
Save Qs-F/2446a6610029ae0eea0cc58bf48dd602 to your computer and use it in GitHub Desktop.
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 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