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 trialEm Har
9,775 PointsCSS images
How can I make my photo on my website to not be so zoomed in. I want the image to use its full pixels but it seems to be heavily zoomed when I put it into my css code
1 Answer
Steven Parker
231,248 PointsTo be specific, you'd need to show what your current code looks like.
But as a general tip, when using an image as a background in CSS, you can use the "background-size: cover
" property setting to be sure the entire image is shown (well, at least all of one dimension).
Tenzing Shema
8,503 PointsTenzing Shema
8,503 Pointstry background-image: cover;
here is more info below https://www.w3schools.com/cssref/css3_pr_background-size.asp