Wednesday, February 23, 2011

iPhone CSS fix

Haha! I found it. Waddayaknow, the info came from a BOOK;)

Insert the following code in the head of your pages and the media queries will work on iPhone and iPod touch. I don't know why the iphone pays attention to this or why the syntax is as it is, but it works (Michael your page is fixed).


<meta name="viewport"
content="width=device-width;
initial-scale=1.0;
maximum-scale=1.0,
user-scalable=0;">

1 comment: