Chrisj Posted August 25, 2016 Share Posted August 25, 2016 The javascript slider that I'm using appears successfully on my pc screen, but the image is truncated on the right when viewed on an iPhone. I'm trying to have the php web script show a different css file when viewed on iPhone, to have different attributes, but, for starters, this link doesn't seem to work: <link rel="stylesheet" type="text/css" media="screen" href="css/component01.css" /> Can you help me with a more proper link that will work for iPhone screens? Quote Link to comment https://forums.phpfreaks.com/topic/301991-help-with-media-screen-style-link-for-php-web-script/ Share on other sites More sharing options...
cyberRobot Posted August 25, 2016 Share Posted August 25, 2016 Is the href attribute pointing at the correct location for the file? Have you tried using a root-relative link? More information can be found here: http://www.motive.co.nz/glossary/linking.php?ref#root Quote Link to comment https://forums.phpfreaks.com/topic/301991-help-with-media-screen-style-link-for-php-web-script/#findComment-1536617 Share on other sites More sharing options...
maxxd Posted August 25, 2016 Share Posted August 25, 2016 You're going to need to do some more work on your media query. Simply 'screen' isn't going to be enough - see here - http://stephen.io/mediaqueries/ Quote Link to comment https://forums.phpfreaks.com/topic/301991-help-with-media-screen-style-link-for-php-web-script/#findComment-1536634 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.