Skip to content

Instantly share code, notes, and snippets.

@WeiChiaChang
Forked from yang-wei/fullscreen.css
Created September 8, 2019 02:41
Show Gist options
  • Save WeiChiaChang/122817419c2f5ab13af4461fa03ca72b to your computer and use it in GitHub Desktop.
Save WeiChiaChang/122817419c2f5ab13af4461fa03ca72b to your computer and use it in GitHub Desktop.
Full size background image using CSS cover in mobile devices
html {
background: url(image url) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
height: 100%;
overflow: hidden;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment