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 trialCaleb Kleveter
Treehouse Moderator 37,862 PointsModifying the image.
In this video Amit talks about using image vs. background image. If I use background image can I change what the image says? I couldn't quit tell.
1 Answer
Stone Preston
42,016 PointsIf I use background image can I change what the image says?
no. you would have to edit the actual image itself
the main difference between image and backgroundImage is that backgroundImage is scaled to fill the bounds of the button, whereas image is not scaled.
also, backgroundImage is placed behind the actual title of the button, while image is placed next to the title. you can see this happen at 2:55 of this video. The image is placed to the left of the title, and then amit removes the title so that it looks normal