Jump to content

CSS file targeting iPad


webguync

Recommended Posts

I am trying to adjust my styles to fix a few things when I view the site on the iPad. I don't have an iPad, but I am using a simulator app I found on the internet (http://ipadpeek.com/).

 

I created a specific style-sheet for the iPad and I am accessing it with the following code.

 

<link rev="made" href="mailto:webguync@gmail.com" />
        <link rel="stylesheet" media="only screen and (min-device-width: 768px)
and (max-device-width: 1024px)" href="CSS/iPad.css"type="text/css" />

 

the style-sheet attributes are not getting picked up when I view in the simulator. I tried placing the code for the iPad specific style-sheet above and below where I am linking my main style-sheet and neither worked.

 

Any ideas?

Link to comment
Share on other sites

I tried that way, but still don't see the change to the iPad simulator. Maybe the simulator isn't accurate.

   <!--[if !IE]>-->
<link type="text/css" rel="stylesheet" media="only screen and (max-device-width: 480px)" href="CSS/iPhone.css" />
<link type="text/css" rel="stylesheet" media="only screen and (min-device-width: 768px) and (max-device-width: 1024px)" href="CSS/iPad.css" />
<!--<![endif]--

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.