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

Patrick Branham
2,341 PointsDevice-pixel-ratio confusion
I don't understand how a device-pixel-ratio (DPR) of 1 is always equal to a ppi of 96. Assuming resolution is constant, wouldn't the ppi decrease as screen size increases, regardless of DPR?
1 Answer

John Kotz
8,591 PointsPPI is calculated with screen size and the number of pixels along the diagonal (pixels/inches), so as the screen size increases so to does the number of pixels. Whereas the DPR is a constant that can be used in conversions between metrics. DPR of 1 implies 96 ppi or 96 pixels in 1 inch of screen. DPR of 2 implies 192 pixels in 1 inch of screen and so forth.