Styling for the Mobile Device

The age of the mobile device is upon us. Smart phones, or smartphones, be they iPhones or Blackberries or Droids, are everywhere and making sure our users can access our content in a way that respects the full functionality of their devices and, at the same time, the limitations of their screens is becoming increasingly important. As many web developers already know, the problem is that the browsers on these devices often don’t announce themselves very well, and so you have to guess a bit — or, rather, make it possible for your website to guess a bit.

Here’s the `` code for guessing the iPhone and sending its browser, Mobile Safari, the right style sheet:

``

A good place to begin, as always when it comes to CSS, is [A List Apart](http://www.alistapart.com/), which has an article entitled [Put Your Content in My Pocket](http://www.alistapart.com/articles/putyourcontentinmypocket/).

Leave a Reply