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 trial
diego luchetta
Data Analysis Techdegree Student 2,251 PointsEscale
When i put on css:
.social-icon { width: 20px; height: 20px; }
the image doesnΒ΄t scale down, it only appear like cut... wich is the problem here?
1 Answer
Adrian Melendez
5,555 PointsIs .social-icon the class or the image itself or the containing element?
My guess is you are changing the size of the containing element to be smaller than the size of the image so the parts of the image outside the containing element are being cropped off on your screen.
diego luchetta
Data Analysis Techdegree Student 2,251 Pointsdiego luchetta
Data Analysis Techdegree Student 2,251 PointsPerfect question my friend !!!!!!!!!!!!! the class was inside of the containing element that it was "<a href ... >, but i see that i have to put it on the <img src.. > element. I made it and now it works !!! THAN YOU VERY MUCH !!