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 Responsive Web Design and Testing Adding Breakpoints for Devices

Anas Rida
Anas Rida
8,183 Points

HD displays

Hi,

I have a question about the screen sizes. When we a breakpoint for a certain pixel size, does that imply the actual physical dimension of the screen or the screen resolution. Some new smartphones have very high pixel density for a small screen, will this affect the CSS and is there a away around this? Many thanks

2 Answers

Bryce Santos
Bryce Santos
11,157 Points

The resolution. Here's a site to get an idea of what you'd be dealing with as far as media query breakpoint sizes.

https://css-tricks.com/snippets/css/media-queries-for-standard-devices/

Anas Rida
Anas Rida
8,183 Points

So basically this means, that a website will never be able to run on every possible device. Especially now that there are devices with ridiculously high pixel counts on small screens.

Bryce Santos
Bryce Santos
11,157 Points

http://www.quirksmode.org/blog/archives/2010/04/a_pixel_is_not.html

There's a difference between CSS pixels and device pixels. This article helps differentiate between the two.

So YES websites theoretically should work on every device.