Skip to content

Instantly share code, notes, and snippets.

@parkr
Created May 18, 2012 21:15
Show Gist options
  • Save parkr/2727635 to your computer and use it in GitHub Desktop.
Save parkr/2727635 to your computer and use it in GitHub Desktop.
Re: iPhone CSS Detector
<?php $stylesheet = (strpos($_SERVER['HTTP_USER_AGENT'],"iPhone")) ? "iphone.css" ? "default.css"; ?>
<link rel="stylesheet" href="/css/<?php echo $stylesheet; ?>" type="text/css" media="screen" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment