Responding to screen resolution size...

User 2716614 Photo


Registered User
21 posts

Thanks for the quick response Steve. I think a bit mechanically and was probably looking for too much logic. I'm getting that its fluid, I need to think more fluid and natural, its good to be reassured I'm hopefully heading the right way now. Many thanks.
User 171749 Photo


Registered User
91 posts

Andrew wrote:
Yep, accepted. I've checked on a few screens and devices and it all just kinda works like you say. I can't figure out how but its probably done with magic and witchcraft. Stuff like that.

It does seem pretty good. Hope I can soon figure how to use it well.


This line of code in your html file makes it "just work" :D

<meta name="viewport" content="width=device-width, initial-scale=1.0">


That line of code causes your ipad mini to display as 1024x768 or whatever the physical size of the screen is
User 2716614 Photo


Registered User
21 posts

Thanks Mark, tho I already got there...

http://viewportsizes.com/
Nice to know all those smartphone screens are just either 320 or 360px. Makes life easier!

Seems the following URL reports your viewport, I tried it with a couple of phones and Tablets...
http://www.whatismyscreenresolution.com/

While this next one tells the actual truth...
http://www.infobyip.com/detectscreenresolution.php

I'm finding the viewport thinger seems used for phones and Tablets. While PC's and Laptops simply are what they are. This interests me but I should have been normal and gone to bed instead (4:15am here). Night.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.