The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Help me design my sprite, please!! Re: Help me design my sprite, please!!

Steven Gardner

Sorry I haven’t explained my self to well.

The containing div is 250px wide and 85px high.
The background Images I want to use as sprites are 64px X 64px.

Its the containing div that will change size not the icon itself.

I can take screen shots of my problem but this forum doesn’t allow images to be attached by the look of it.

HERE is a codepen example. The icon would be in the top left of the box. Its the box that will change size but the icon will still remain in the same position.

Codepen Example