How to sprite a back
April 4, 2012 3:40 PM Subscribe
Web design question about using the CSS Sprite technique for speeding up page loads, but while hiding part of the background.
posted by steinsaltz to technology (8 answers total) 3 users marked this as a favorite
I am trying to build a website where the hi-res background image--let's say it's about 960 pixels wide, and non-repeating--shares space in a larger PNG with all the other little images from the page.
I stuck this background onto a tag. The trouble is that if you scroll 2,000 pixels right, you can see all the other icons and pictures that aren't part of the background.
What is a good way of making the background image cut off a certain number of pixels to the right? I would just interpose a new to deal with this, but am worried about messing up some existing layout. Any help much appreciated.