Css for mobile phones

Want to make you website mobile phone friendly?

First you are going to need some meta tags in the heading so phones KNOW that they are looking at a mobile site and display in the right way.

<meta name=”viewport” content=”width=device-width, user-scalable=yes”>
<meta name=”viewport” content=”width=device-width; initial-scale=1.0″>


Then you are going to need some media quires. This works well

@media handheld, screen and (max-width: 480px), screen and (max-device-width: 480px), screen and (-webkit-min-device-pixel-ratio: 2) {
/* Phone CSS here */


Then somthing to resize images

/* Flexible Images for Adjusting Screen Resolution */
img {

and then a few fixs

/* iphone text fix */

html {
-webkit-text-size-adjust: none;


Mobile-friendly: The mobile web optimization guide



Media types


Opera Mini Simulator



Taming Opera Mini 4


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s