Searching for hints/tips for making website work on smartphones.
So I have built a task list app, looks great on the computer, but has so many hickups on a smartphone...
I didn't find much on this subject in the Laracast guides.
Some precise questions:
How to test how your website works and looks on a smartphone during development? (including all limitations like fonts, gestures etc.)
How to streamline fonts on all devices?
I read that I need to set input to font size 16px to make it stop zooming to the input form automatically on iPhones. But does that mean that I'd have to rewrite my CSS main font sizes? My <body> is set to font-size 14px, and everything else is using EM's...
@bwrice Thanks for the hint! But the thing with chrome dev-tools is that it does not change my fonts, while on iPhone the fonts look different! Also, the size of some components seem bloated on my iPhone, while in the iPhone mode on dev-tools it looks fine...
BTW do I really need to set my base font 16px on the body just to make it stop zooming on inputs? Having just the input font-size bigger than all the rest looks really ugly...
@jlrdw Thanks! This is a great tool!
It seems that the iPhone Safari user agent custom CSS brings forth some tricky CSS which doesn't appear on the computer.
Is there any CSS reset for mobile you can suggest?
I do not use bootstrap I write my own media queries. But bootstrap should have a means to write for normal desktop at the same time small devices. And don't forget there is also mobile detect software.
If Chrome dev-tools aren't mirroring what you actually see on your phone, you can use BrowserSync to open sites on your development environment from a smart-phone connected to the local network.
@bwrice
A great tool for auto sync! But it won't work on my iPhone. : (
I did these steps: php artisan serve this serves to localhost:8000. Then I added this to my mix file: .browserSync('localhost:8000') however, chosing something other than localhost won't make it work properly...
But with these above steps I cannot open anything on my iPhone. I am on the same wifi.