Skip to content

Instantly share code, notes, and snippets.

@birtles
Created January 11, 2018 01:27
Show Gist options
  • Save birtles/9fc29668a1a6acbc1486b2dab8f961a9 to your computer and use it in GitHub Desktop.
Save birtles/9fc29668a1a6acbc1486b2dab8f961a9 to your computer and use it in GitHub Desktop.
<html lang="en">
<head>
<meta charset="utf-8">
<title>Test</title>
<style>
body, html {
padding: 0;
margin: 0;
height: 100%;
overflow: hidden;
}
</style>
</head>
<body>
<div style="display: flex;
flex-direction: column;
height: 100%">
<div style="flex: 1;
transform: translate(0px)">
<div style="position: absolute;
width: 100%;
height: 100%;
background: lightblue;
overflow: hidden">Top</div>
</div>
<div>
<span style="text-align: center;
height: 100%;
min-height: 45px;
display: flex;
flex-direction: column;
justify-content: center">Bottom</span>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment