Does max-width in media-queries uses the width or height? -


this question bit dumb but, long time confused this. when use max-width in media query, apply current width, or apply longest possible width.

for example, know iphone 4 320 x 480, if want query apply vertical view, should use max-width: 320 or should use max-width: 480

that depend upon whether browser in portrait mode or landscape mode. can locked, based upon answers previous question: how lock orientation portrait mode in iphone web application?


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

.htaccess - ERR_TOO_MANY_REDIRECTS htaccess -