<?php if(strstr($SERVER['HTTP_USER_AGENT'],'iPad')){ ?>
<link rel="stylesheet" type="text/css" href="http://artendijen.com/wp-content/themes/twentytwelve/styleTablet.css">
<?php } ?>
I am trying to detect if the user agent is iPad, but the following syntax above does not work, I applied a display none to an element in the css file and removed the php if statement and checked my ipad and the element was not there.