Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialcharles sancy
5,479 PointsPutting icons in one file
Am I to understand that he found 3 icons that are 105px each, stacked them in one file on photoshop or something similar and put them in one file and is now using that file as a background? When I open the file the icons aren't 105px each.
1 Answer
Jorge Felico
26,800 PointsHi Charles,
The icons don't really need to be the same size, You can make a png or jpg file in photoshop with all of the icons spread out, and then apply it to each element as a background image, then use background-size and background-position to display whatever icon you want from the file.