Skip to content

Instantly share code, notes, and snippets.

@conor-egan
Created January 20, 2014 17:03
Show Gist options
  • Save conor-egan/8524080 to your computer and use it in GitHub Desktop.
Save conor-egan/8524080 to your computer and use it in GitHub Desktop.
Style background image on a website that covers the entire browser window at all times.
html {
background: url(your-image-here) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment