how to auto scale with different device?

  • 1
  • Question
  • Updated 4 years ago
Hi, How to auto scale with different device?

currently, i'm playing with viewport

meta name=viewport content="width=640, initial-scale=1, target-densitydpi=device-dpi

i set my development dimension to 640px width. and i tried it to run my application in emulator dimension 1240px. why it not auto scale from 640 to 1240px? is there someting missing to make it auto-scale to fit screen?
Photo of lynx pravoka

lynx pravoka

  • 14 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 1
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Lynx,
when posting code use the HTML element <code></code>.

Google: html5 viewport

Remove what you have written. Here is the minimum needed for use with mobile devices.
<meta name="viewport" content="width=device-width">

Questions?
Jesse
Photo of lynx pravoka

lynx pravoka

  • 14 Posts
  • 0 Reply Likes
View port that i used still not auto-scale from 640 to custom dimension. how to make it?

currently my view port

<meta name=viewport content="width=device-width, user-scalable=no, target-densitydpi=device-dpi">
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@lynx,
try the viewport I give you.
Jesse