TheFilmGod Posted May 25, 2008 Share Posted May 25, 2008 I've seen this done multiply times, but I can't figure out how. Google isn't very friendly for this... :-\ Let us say I have an image like so: +-----+-----+ | A | B | +-----+-----+ Is it possible to use css to tell it "crop only A out" and make it the new background? And then say, "Crop only B out" and make it the background for another div (totally separate from A)? Link to comment https://forums.phpfreaks.com/topic/107201-one-background-image-to-separate-to-two/ Share on other sites More sharing options...
AndyB Posted May 25, 2008 Share Posted May 25, 2008 http://www.codertools.com/css_help_guide/css_background-position.aspx Link to comment https://forums.phpfreaks.com/topic/107201-one-background-image-to-separate-to-two/#findComment-549642 Share on other sites More sharing options...
haku Posted May 26, 2008 Share Posted May 26, 2008 This should also help: http://www.alistapart.com/articles/sprites Link to comment https://forums.phpfreaks.com/topic/107201-one-background-image-to-separate-to-two/#findComment-549994 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.