+ 1

Position of elements on desktop vs phone

After looking over a few of my projects, I noticed that some elements appeared in one position on desktop, but then I’d check my phone and the element would be positioned say slightly more to the right. Is there any reason this is happening that I can fix or is it just a formatting glitch?

31st Jan 2019, 12:54 AM
Mike
Mike - avatar
5 Réponses
+ 2
Try use this tag <center> Like this <center> <button style = "cursor: crosshair;" id = 'start'><t>Start</t></button> </center>
31st Jan 2019, 1:18 AM
JTLZ
+ 2
Yeah that worked, thanks!
31st Jan 2019, 1:26 AM
Mike
Mike - avatar
+ 2
You are welcome! Happy learning and happy coding!
31st Jan 2019, 1:27 AM
JTLZ
+ 1
Try to use: width: 100%; height:100%; Is it a code?
31st Jan 2019, 1:06 AM
JTLZ
+ 1
I made the code public on my profile, it's called "Space project". On desktop the start button is fairly centred beneath the "space" title, but on my phone it appears slightly to the right, and the font of the start button seems to change.
31st Jan 2019, 1:10 AM
Mike
Mike - avatar