If you’re using a WordPress theme that scrolls and you choose to use a background image (not a background pattern), this is imperative, that is unless you’re into your background image scrolling with your content. Having your content glide smoothly over your background image is as easy as inserting this code snippet into your style.css file, or if you’re using a GPP theme, into your custom CSS box. Easy as pie!
body { background-image:url('example.gif'); background-repeat:no-repeat; background-attachment:fixed; }
Leave a Reply