Skip to content

Instantly share code, notes, and snippets.

@xus
Last active December 11, 2015 04:48
Show Gist options
  • Save xus/4547793 to your computer and use it in GitHub Desktop.
Save xus/4547793 to your computer and use it in GitHub Desktop.
Body with background full screen
body {
background-image:url(background.jpg);
background-repeat: no-repeat;
background-size: 100%;
background-attachment:fixed;
background-position:center;
margin:0px;
}
@sangar82
Copy link

Great!

@xus
Copy link
Author

xus commented Mar 8, 2013

Another, fixing top.

body {
background-image:url(background.jpg);
background-repeat: no-repeat;
background-size: 100%;
background-position:center top;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment