Last active
August 29, 2015 14:25
-
-
Save dsturley/4ce0bcaf8a83e931121e 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> | |
<title>Test Page</title> | |
<style> | |
* { box-sizing: border-box; } | |
html, body { | |
padding: 0; | |
margin: 0; | |
height: 100%; | |
background: #fff; | |
color: #000; | |
} | |
header { | |
top: 0; | |
} | |
footer { | |
bottom: 0; | |
} | |
header, footer { | |
padding: 20px; | |
position: fixed; | |
left: 0; | |
right: 0; | |
height: 80px; | |
background: #000; | |
color: #fff; | |
z-index: 2; | |
} | |
main { | |
position: relative; | |
left: 1px; | |
padding: 80px 20px; | |
z-index: 1; | |
} | |
</style> | |
</head> | |
<body> | |
<header> | |
<h1>Hi</h1> | |
</header> | |
<main> | |
<p>Some content</p><p>Some content</p><p>Some content</p><p>Some content</p><p>Some content</p><p>Some content</p><p>Some content</p><p>Some content</p> | |
<p>Some content</p><p>Some content</p><p>Some content</p><p>Some content</p><p>Some content</p><p>Some content</p><p>Some content</p><p>Some content</p> | |
<p>Some content</p><p>Some content</p><p>Some content</p><p>Some content</p><p>Some content</p><p>Some content</p><p>Some content</p><p>Some content</p> | |
<p>Some content</p><p>Some content</p><p>Some content</p><p>Some content</p><p>Some content</p><p>Some content</p><p>Some content</p><p>Some content</p> | |
</main> | |
<footer> | |
Footer | |
</footer> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment