PHP Hide CSS id/class for iPad


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?php
  2. if(strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'],'iPod') || strstr($_SERVER['HTTP_USER_AGENT'],'iPad')) {
  3. echo('<style type="text/css">#furnishButton { display: none; }</style>');
  4. }
  5. ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.