I was build web design with css & html, if i open on my laptop is normal but if i open in android, the position randomly | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I was build web design with css & html, if i open on my laptop is normal but if i open in android, the position randomly

How to solving that's?

14th May 2020, 1:06 AM
Qyuriz
Qyuriz - avatar
3 Answers
+ 5
It's because of screen Resolution difference for example if your laptop screen width is 1280px & you put <button> margin-left:1100px; it looks good on laptop but common Mobile screen width is 400px or 500px so that button will not be visible in mobile so you need to write responsive code ,you can make responsive using "%" or writing @media rules. Here is a perfect examples: https://www.w3schools.com/cssref/css3_pr_mediaquery.asp
14th May 2020, 1:30 AM
Sudarshan Rai
Sudarshan Rai - avatar
0
Wow nice sir, thank you.
14th May 2020, 1:52 AM
Qyuriz
Qyuriz - avatar
0
You have to make it responsive, you can use media queries to make it responsive. like @media screen and (max-width:480 px) { }
14th May 2020, 5:15 PM
Md. Aktaruzzaman Talukdar
Md. Aktaruzzaman Talukdar - avatar