Skip to content

Instantly share code, notes, and snippets.

@keithdevon
Created August 22, 2014 13:54
Show Gist options
  • Save keithdevon/4f77d318d4e41003ff63 to your computer and use it in GitHub Desktop.
Save keithdevon/4f77d318d4e41003ff63 to your computer and use it in GitHub Desktop.
Full screen background images
html {
background: url('http://placebear.com/1200/800') no-repeat center center fixed;
background-size: cover;
height: 100%;
overflow: hidden;
}
body {
height:100%;
overflow: scroll;
-webkit-overflow-scrolling: touch;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment