demosthenes.info

I’m Dudley Storey, the author of Pro CSS3 Animation. This is my blog, where I talk about web design and development with , and . To receive more information, including news, updates, and tips, you should follow me on Twitter or add me on Google+.

web developer guide

my books

Book cover of Pro CSS3 AnimationPro CSS3 Animation, Apress, 2013

my projects

A Sass color keyword system for designers. Replaces CSS defaults with improved hues and more memorable, relevant color names.

CSSslidy: an auto-generated #RWD image slider. 3.8K of JS, no JQuery. Drop in images, add a line of CSS. Done.

tipster.ioAutomatically provides local tipping customs and percentages for services anywhere.

Site Icons For Mobile Devices

mobile / icons

Estimated reading time: 1 minute, 11 seconds

iPhone home screen icon

Modern mobile devices like iPhones, iPads and Androids boast high-speed web access and fully-featured browsers. They also have the ability to add a frequently visited site to their home screen as an icon. If you want your site to be represented with anything more than a generic picture or a zoomed version of your site’s 16 x 16 pixel , you need to create an image with a very particular size and filename.

That image must be in PNG format, exactly 114 × 114 pixels in size, and have the filename apple-touch-icon.png or apple-touch-icon-precomposed.png. I recommend using the latter, as images with that filename are picked up by both Apple and Android devices, and escape a “shine” effect when they are rendered on the device’s screen. You can see the icon for this site in the top left corner of the image to the left.

You should treat the home screen icon image exactly like a favicon, and upload it to the root of your web server, directly beside the index page. No changes to your HTML code are needed: devices will pick up the icon automatically.

(And yes, the screenshot is from one of my own Apple devices: to take a screenshot under iOS 5, simply hold down the sleep button and tap the home button twice. The resulting screen grab is saved to your device’s camera roll.)

comments powered by Disqus

This site helps millions of visitors while remaining ad-free. For less than the price of a cup of coffee, you can help pay for bandwidth and server costs while encouraging further articles.