+ 23
How to make the same view on diferent devices?
the view on my tablet and phone are not the same. https://code.sololearn.com/Wz2vdUm8A253/?ref=app https://code.sololearn.com/Wq48QgHbufrZ/?ref=app
11 Respuestas
+ 16
Yes! I did it. thank you! 😊
Though for the furniture it doesn't work ☹️
+ 15
I think no. Flying Dutchman must be on the water surface.
+ 15
I tryed. I did't save it. Doesn't work.
+ 13
Thank you very much! I dont know why it does not work. Android 4 and Android 9 look diferent. See the codes above in my question. May be other devices work well.
+ 7
To solve this problem, one should use '%' instead of 'px'.
+ 5
did you solve this? would it also be related to the absolute values, as in
width:240px;
height:200px;
in flying dutchman?
+ 4
oh! I have always seen it floating, but it made sense for a ghost ship!
The height on the screen of the ipad is over 1000, so 200px is very near to the top. why don't you try 75% instead?
+ 4
sorry to read that. i would like to help but all my cros platform efforts have been on javascript, I really have never used css much
+ 4
if you locate a css code related to your problem, I can check how it looks on my ipad
+ 3
but your css still has px rather than %?
+ 2
Setting the viewport to make your website look good on all devices:
add this meta element at head section
<meta name="viewport" content="width=device-width, initial-scale=1.0">