Anyone know the max width in pixals for a phone? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Anyone know the max width in pixals for a phone?

Body{ Width:? }

21st Oct 2016, 8:20 PM
Brian
6 Answers
+ 3
It depends on the phone's screen resolution. You can use 'auto' or '100%'.
22nd Oct 2016, 2:31 AM
Liam
Liam - avatar
+ 3
You can visit Botstrap site where is a table whith averege values for different devises including phones. (Sorry for my English)
22nd Oct 2016, 10:46 AM
Дарья Стеценко
Дарья Стеценко - avatar
+ 3
auto /100% width & height
23rd Oct 2016, 5:53 AM
Rejon
Rejon - avatar
+ 2
On Google Chrome you can use Devtools to test a website simulated on a mobile device!
27th Oct 2016, 4:45 PM
Jonathan
Jonathan - avatar
0
Thanks
26th Oct 2016, 1:18 AM
Brian
0
You can Google online the pixel width of any smartphone if you want to do it for a certain phone. width auto/100% usually works well. I also like to add a min or max width with divs besides the background (form inputs for example).
16th Nov 2016, 6:18 PM
Matt James
Matt James - avatar