Skip to content

Instantly share code, notes, and snippets.

@noahhendrix
Created July 28, 2011 18:52
Show Gist options
  • Save noahhendrix/1112244 to your computer and use it in GitHub Desktop.
Save noahhendrix/1112244 to your computer and use it in GitHub Desktop.
Multiple backgrounds in CSS3
html, body { min-height: 100%; } /* force the footer to always be at the bottom */
body {
background:
url(layout/header.jpg) no-repeat scroll center top,
url(layout/header-bg.jpg) repeat-x scroll left top, /* allows screen to be resized w/o eventual cutoff */
url(layout/footer.jpg) no-repeat scroll center bottom,
url(layout/footer-bg.jpg) repeat-x scroll left bottom; /* allows screen to be resized w/o eventual cutoff */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment