Help with media screen style link for PHP web script

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?

If you’re hoping to support various mobile devices wouldn’t it be better to have a look at using HTML5 and CSS3 rather than the older styles? It’s not something I know much about, have a similar job to do on a couple of sites, but it seems pointless using older code to add new features.

1 Like

You would be much better off using media queries in your css to change the display for smaller screens.

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.