iPhone Sample Web Code Android on NPR
Nov 16

Russell Beattie was just about to add handheld CSS support to Mowser and then he realised that CSS3 is causing the death of Handheld Stylesheets:

I was just looking to add in a handheld stylesheet and header into the Mowser WordPress plugin I just posted about, and happened to run across a post about Opera Mini 4 published over at Unintentionally Blank about this very topic, published *just today*. Wow… In the post, Phil points out that Opera Mini 4 has gotten rid of defaulting to the handheld stylesheet, unless you’ve explicitly chosen to turn on Small Screen Rendering (”Mobile view”) in the settings. Interesting! Opera has been one of the leading promoters of Handheld styleseheets, and their Opera Community site is still the best example of how to use it on the web today.

By choosing to default to non-handheld views, I have to agree with Phil that Opera seems to have given up the fight on this particular battle, and is instead banking on more sites using CSS3 instead. Like the iPhone’s mobile Safari browser, Opera Mini supports CSS3 media queries which lets you modify the style based on “media features”, which include among other attributes, height, width and color. In other words, instead of requiring that the device know that it’s a handheld (or in Internet Explorer’s case, that it’s *not* a handheld) in a boolean yes/no manner, CSS3 allows the publishers to design based on a device’s specific capabilities.

Time for Russell to add CSS3 into Mowser instead. Does the Blackberry browser frigging support display:none; yet? :)

One Response to “CSS3 and the death of Handheld Stylesheets”

  1. JJ Says:

    I have had so much pain with the BB browser in the past. The lack of support for basic constructs has had me pulling out my hair, and it doesn’t seem to be getting that much better. Hopefully iPhone/gPhone will change that.

Leave a Reply

Spam is a pain, we are sorry to have to do this to you, but can you answer the question below? If so, the comment will go through!

Spam Question: What is the number after 4?

Your Answer: