Skip to content

Instantly share code, notes, and snippets.

@mosquito
Created September 8, 2014 12:42
Show Gist options
  • Select an option

  • Save mosquito/8d0061b9af0bba75fa93 to your computer and use it in GitHub Desktop.

Select an option

Save mosquito/8d0061b9af0bba75fa93 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
html, body {
height: 100%;
margin: 0;
padding: 0;
}
div {
background: rgba(0,0,0,0.2);
border: 1px solid #aaa;
min-height: 30px;
display: block;
}
.footer {
position: fixed;
bottom: 0;
left: 0;
height: 60px;
background-color: #0000aa;
z-index: 500;
}
.map-wrap {
box-sizing: border-box;
min-height: 100%;
height: 100%;
padding-bottom: 60px;
}
.container {
height: 100%;
position: relative;
}
.map {
height: 100%;
background: #00aa00;
}
.container div {
width: 100%;
}
.container .shown {
padding-bottom: 600px;
}
</style>
</head>
<body>
<div class="container">
<div class="map-wrap shown">
<div class="map"></div>
</div>
<div class="halfy">
<div class="footer shown"></div>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment