Created
July 28, 2011 18:52
-
-
Save noahhendrix/1112244 to your computer and use it in GitHub Desktop.
Multiple backgrounds in CSS3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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