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!

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?

css

5/14/2020 1:06:28 AM

Qyuriz

4 Answers

New Answer

+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

0

Wow nice sir, thank you.

0

Try resizing the browser window on your laptop to see how the page displays at different sizes.

0

You have to make it responsive, you can use media queries to make it responsive. like @media screen and (max-width:480 px) { }