Alex Rivera | Logout

Do iPhone / Android browsers support CSS @media handheld?

Asked 2010-10-08T18:36:05.080
48

I want to change my web page CSS for web browsers running on cell phones, like the iPhone and Android. I've tried something like this in the CSS file:

@media handheld {
  body {
    color: red;
    }
  }

But it doesn't seem to have any effect, at least on the iPhone. How can I write my CSS to work differently on the iPhone etc, ideally without using javascript?

Edit
Report

1 Answer

22

@media handheld refers only to those ancient tiny proto-html cellphones from years past which couldn't even really display web pages. The ePUB, MOBI, Tablet, community of vendors all said emphatically "H*ck no, we are not @media handheld devices!" because they were correctly worried that this would land them forever in a no-man's land subservient to "real" web pages.

With today's small devices with very high resolution displays we still don't have a good way to tell HTML how to display things "correctly" on large displays with relatively low resolution vs. small displays with very high resolution. And as a certified old fart my eyes would like to remind you that no, the answer is not just to make everything including fonts 2X smaller.

answered 2012-11-01T12:29:54.663

Your Answer