iPhone CSS Detector

iPhone Detector is great as it allows you to style for the iPhone device and standard web browsers.
Simply add your iPhone stylesheet to the 'iphone.css' location and add your default stylesheet to the 'default.css'
Good Luck & Enjoy.

  $browser = strpos($_SERVER['HTTP_USER_AGENT'],"iPhone");
  if ($browser == true){$browser = 'iphone';}
<?php if($browser == 'iphone'){ ?>
  <link rel="stylesheet" href="css/iphone.css" />
<?php } else{ ?>
  <link rel="stylesheet" href="css/default.css" />
<?php } ?>
Enjoyed this article? Please consider donating: 3FVR5qaxYV8yAgNUUS7FC3o8c54YfDR5zK