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 trialJo-wayne Josephs
19,748 PointsSize of images
Do we have to resize the images before we use them in our portfolio? They work fine, but there seems to be a spacing image int he mobile view....
Jo-wayne Josephs
19,748 Pointsyea they came out looking wonky...but the spacing was correct. was hoping that would work but i guess i'll just have to go edit them.
2 Answers
Daniel Marlin
8,128 PointsIt's generally a good idea to upload images that are as close to the size you want them to appear on your webpage. Resizing (reducing the size of) a larger image with code once it has been uploaded can make your page load slower and use up more bandwith, while uploading an image that is too small and scaling it up will cause it to pixilate.
Christopher Mlalazi
Front End Web Development Techdegree Graduate 17,305 Points@Daniel, thatβs an excellent tip. I am not so familiar with picture size but how do you determine the size of the page page and that of the picture? Like say you have a div where you want to put a background picture how do you measure both. I hope my question is understandable.
Christopher Mlalazi
Front End Web Development Techdegree Graduate 17,305 PointsChristopher Mlalazi
Front End Web Development Techdegree Graduate 17,305 PointsI would think that you can be able to resize them using CSS. Have you tried that?