Web Design Forum: iPhone not reading handheld stylesheet - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

iPhone not reading handheld stylesheet Rate Topic: -----

#1 User is offline   teaandcake7 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 25-August 10
  • Reputation: 0

Posted 25 August 2010 - 03:26 PM

Hi,

I am fairly new at optimising sites for mobile viewing. I have been testing my website (http://www.helenlowr...o.uk/index.html) on a friend's iPhone 4G but it will not read the handheld stylesheets for the pages and is instead reading the screen stylesheets. The handheld stylesheet should move the navigation buttons to the top, above the main content area, and also do other things like remove a lot of the images, hide various elements, resize text etc. I have tried increasing the max-device-width from 480 to 960 to allow for this new iPhone's bigger screen. In my handheld stylesheets I have also added the following:

@media all and (max-device-width: 960px) {

(css here)

}

Is there a basic error I am making? I have also tried testing it on my Nokia N85 but as far as I know the N85 only reads screen stylesheets, doesn't notice @media and of course won't read any kind of handheld stylesheet.

If anyone has any ideas I would be most grateful! As the iPhone is now such a popular phone I really want my site to read properly on it!

Many thanks!

the Screen stylesheet:
Attached File  index.css (447bytes)
Number of downloads: 1

The handheld stylesheet:
Attached File  indexhandheld.css (629bytes)
Number of downloads: 1
0

#2 User is offline   BlueDreamer 

  • Web Guru
  • Group: Moderators
  • Posts: 5,804
  • Joined: 23-October 07
  • Reputation: 202
  • Gender:Male
  • Location:Northampton (where?)
  • Experience:Advanced
  • Area of Expertise:Web Developer

Posted 25 August 2010 - 05:04 PM

By default the iPhone doesn't render "handheld" stylesheets so that's why you see your normal site.

There are numerous articles on this but http://www.cssdiscus...topic.php?id=25 should help you.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users