How do i adjust my web page to be view in phones and computers? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How do i adjust my web page to be view in phones and computers?

when ever I look at my web page on my computer, my phone, or another computer with a big screen it looks different. The image on the page are adjusted different. how do I fix that?

25th Feb 2017, 7:38 AM
chris
chris - avatar
5 Answers
+ 5
If you want that your page fit same whatever the device size/resolution, you need to think to it at begining of your design, else adaptation will be hardiest... depends also of complexity of actual layout/source code, and if a framework was used to make the page. Anyway, getting a layout to display same disposition on all device size, just by adapt elements sizes ( to get page fit same ) is not a good idea, as you cannot have a good layout for smallest to largest device display available. You'll be better advice to design your page to make it fit different layouts according to ranges of display size, why not also to display orientation...
25th Feb 2017, 8:07 AM
visph
visph - avatar
+ 2
how do I do that
25th Feb 2017, 7:57 AM
chris
chris - avatar
25th Feb 2017, 8:06 AM
Nilesh Solanki
Nilesh Solanki - avatar
+ 1
Use percentages for widths so they scale down, and also use media queries in css, so that at different screen sizes, elements are styled for that size. Bootstrap is good for an example to how this works.
25th Feb 2017, 8:08 AM
Richard Rogers
Richard Rogers - avatar
0
use media query to to change view in different screen size
25th Feb 2017, 7:49 AM
Nilesh Solanki
Nilesh Solanki - avatar