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
Parker Stouffer
498 Pointsimages
i need help making one of my picures smaller for css what code would i need to use to make a picture smaller
2 Answers
Becky Steele
16,229 PointsIn addition to the previous answer, it's good to use percentage values in anticipation of responsive design. If you set your width to a percentage, specify that your height be auto, so that the images don't get skewed trying to stretch to rigid pixel dimensions.
img {
width: 50%;
height: auto;
}