Skip to content

Instantly share code, notes, and snippets.

@begedin
Created March 19, 2013 22:21
Show Gist options
  • Save begedin/5200667 to your computer and use it in GitHub Desktop.
Save begedin/5200667 to your computer and use it in GitHub Desktop.
Full screen layout in CSS, fixed header and footer
header, footer {
position: fixed;
width: 100%;
background-color: black;
}
header {
top: 0;
height: 50px;
}
footer{
bottom: 0;
height: 100px;
}
section{
position: relative;
height: 1500px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment