Iphone Specific Techniques
Iphone Specific Techniques
Obviously, you’ll customize the file path and name for your own image.
The “width=320;” determines the magnification level of the content. Set this number to
whatever is appropriate for your content (320 pixels is the width of the iPhone screen in a
vertical orientation).
This targets only devices with a maximum screen width of 480 pixels, namely iPhones and
iPod Touches.
#content img {
max-width: 250px;
}
Link me deadly
Last but not least, links are perhaps the most important element on the mobile page. When
easily identifiable, links help visitors navigate easily and efficiently. When poorly styled or
otherwise obscure, links are essentially useless, leaving your visitors groping in the dark for
their next move. Thus, when styling your mobile links, it is good practice to emulate
conventional link appearance with an underline, distinguished color, and perhaps a slightly
contrasting background color to boot. Here is an example that keeps links looking crisp and
clean:
a:link, a:visited {
text-decoration: underline;
color: #0000CC;
}
a:hover, a:active {
text-decoration: underline;
color: #660066;
}
.center {
width: 100% !important;
text-align: center;
}
http://roopeshreddy.wordpress.com/2010/10/25/developing-web-applications-for-blackberry-
mobiles-using-microsoft-asp-net/