Jump to content

Optimising Site for iPhone


cags

Recommended Posts

I'm looking at creating a css file specifically for the iPhone. I'm just wondering the best option to select the css. I've had a quick look around and come up with...

 

<link media="only screen and (max-device-width: 480px)"
  rel="stylesheet" type="text/css" href="iphone.css"/>

 

Is this going to be the best method or should I use PHP to detect the user agent and link to the right css file for that user agent?

Link to comment
https://forums.phpfreaks.com/topic/177800-optimising-site-for-iphone/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.