width=device-width, initial-scale, and too-wide elements

Do you know the difference between device-width and initial-scale? Do you know what happens when you use one or the other, or if you use both? Quirksmode set out to check the intended behaviour of each 3 combinations against a range of current browsers and the results were somewhat inconsistent.

Just some random notes from the trenches in order to show everyone that, despite appearances, the viewport is not simple or easy to understand.

An excerpt from width=device-width, initial-scale, and too-wide elements

View original article

Subscribe to our Newsletter

Add your email address and receive an email every Friday covering off everything worth knowing about building your websites responsively.