+ 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

12th Aug 2020, 5:02 AM
PASHA from Russia 🇷🇺
PASHA  from Russia  🇷🇺 - avatar
11 Respostas
+ 16
Yes! I did it. thank you! 😊 Though for the furniture it doesn't work ☹️
19th Aug 2020, 7:20 AM
PASHA from Russia 🇷🇺
PASHA  from Russia  🇷🇺 - avatar
+ 15
I think no. Flying Dutchman must be on the water surface.
19th Aug 2020, 6:58 AM
PASHA from Russia 🇷🇺
PASHA  from Russia  🇷🇺 - avatar
+ 15
I tryed. I did't save it. Doesn't work.
19th Aug 2020, 11:48 AM
PASHA from Russia 🇷🇺
PASHA  from Russia  🇷🇺 - avatar
+ 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.
12th Aug 2020, 2:14 PM
PASHA from Russia 🇷🇺
PASHA  from Russia  🇷🇺 - avatar
+ 7
To solve this problem, one should use '%' instead of 'px'.
12th Dec 2020, 7:00 AM
RΔνιεsΗ MΔιηι
RΔνιεsΗ MΔιηι - avatar
+ 5
did you solve this? would it also be related to the absolute values, as in width:240px; height:200px; in flying dutchman?
19th Aug 2020, 6:29 AM
bell
bell - avatar
+ 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?
19th Aug 2020, 7:01 AM
bell
bell - avatar
+ 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
19th Aug 2020, 11:51 AM
bell
bell - avatar
+ 4
if you locate a css code related to your problem, I can check how it looks on my ipad
19th Aug 2020, 11:53 AM
bell
bell - avatar
+ 3
but your css still has px rather than %?
19th Aug 2020, 7:30 AM
bell
bell - avatar
+ 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">
12th Aug 2020, 12:25 PM
Solo programmer
Solo programmer - avatar