Skip to content

Instantly share code, notes, and snippets.

@penafieljlm
Created July 19, 2017 22:17
Show Gist options
  • Save penafieljlm/6bc1e411f369d7bb9db7301b34afd054 to your computer and use it in GitHub Desktop.
Save penafieljlm/6bc1e411f369d7bb9db7301b34afd054 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">
html {
height: 100%;
}
body {
height: 100%;
}
.container {
align-items: center;
display: flex;
flex-direction: column;
height: 100%;
justify-content: center;
width: 100%;
}
.item1 {
position: absolute;
top: 0px;
}
.item2 {
}
.item3 {
position: absolute;
bottom: 0px;
}
</style>
</head>
<body>
<div class="container">
<div class="item1">
Header
</div>
<div class="item2">
Content
</div>
<div class="item3">
Footer
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment