October 20, 201115 yr Hi, I would like to know how you would make a website compatible in terms of layout etc. for different operating systems, for lets say the iPad, iPhone, MacOS, Linux etc. I understand that you would detect the user using an iPad with navigator.userAgent... but after that how would I then change the layout accordingly?
October 20, 201115 yr It really depends on how different you want the layout/site to be. If the site is identical with different styling then you can just detect the device/browser and then serve up a different css file. If you want a completely different site for (eg) ipad vs normal browsers then you obviously have to serve up a completely different page as the contents are different.
Create an account or sign in to comment