If you want to provide close-to-native iPhone experience in your pages, how about using shiny glossy icons, just like those used on the home screen.
You can make any image look like a rounded glossy icon by using:
For example:
![]()
Benefits:
Using two divs:
<div class=“the-image“> <div class=“the-mask“> </div> </div>
How are these styled then?
border-radius: 10px (and the same -moz-border-radius and -webkit-border-radius)To make it easy, I’ve created a script that can generate the overlay mask image with any dimension. The script can be used like this:
The PHP script that generates the mask is fairly well documented if you want to tweak. The gist of it really is using GD library to create a fully transparent square and a semi-transparent piece of an ellipse.
[...] updated my script that generates the shiny glossy overlays for icons (see previous post) to generate the new type of image. The script can be called like this: [...]