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

HTML How to Make a Website Styling Web Pages and Navigation Polish the Navigation and Footer

Mark Shiel
Mark Shiel
12,225 Points

Is it common to double the image size for double density displays? What is the reason behind this?

Obviously as mentioned in the lesson it's to keep the image sharp, but what causes it not to be sharp in the first place? Are double density displays displaying the image at twice it's pixel size so that everyone on the screen is not too small and unreadable?

Anything else that should be considered to accommodate these high resolution screens?

1 Answer

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

An example: my laptop display is 1024x768 at 13 inches. Retina display laptops are ~2560x1600.

So if your image is only 1024x768, it will look fine on my laptop, but will probably pixelate a bit on a retina-display. However, if you image is already at 2560x1600, it will look the same as the other on my display (so long as dimensions are correctly set), but will stay very clear/crisp on the retina-display.

I hope that makes sense. Keep Coding! :)