CSS for iPhone 4 (Retina display)

June 23rd, 2010 in with 31 Comments
Regarding the topic:

Since the iPhone 4 got intro­du­ced espe­cially inter­face desi­gners were won­de­ring: What will change desi­gning for a dis­play with twice the pixel ratio?

So if you feel like you need to make some adjust­ments to your CSS just for HiRes dis­plays, this is how you do it.

Tar­get with spe­ci­fic CSS:

<link rel="stylesheet" media="only screen and (-webkit-min-device-pixel-ratio: 2)" type="text/css" href="../iphone4.css" />

The rea­son is, that because every pixel is half the visual size, you may have to dou­ble the values of some CSS pro­per­ties. Espe­cially for images shown on a Retina dis­play this comes in handy. You will be able to see the full qua­lity of up to a 960 pixels wide image on those devices.

How do I tar­get the iPad? Read here.

Project 365 Day 175: Worth Queueing For

Two other inte­res­ting arti­cles about the Retina dis­play: What does 320dpi mean to desi­gners? by Tim Van Damme and How to make your web con­tent look stun­ning on the iPhone 4’s new Retina dis­play by Aral Balkan.

Responses are currently closed, but you can trackback from your own site.

31 Comments and Trackbacks

[…] here to read the rest: CSS for iPhone 4 (Retina dis­play) « Tho­mas Maier – web … This entry was pos­ted on Wed­nes­day, June 23rd, 2010 at 6:35 pm and is filed under Uncategorized. […]

[…] more: CSS for iPhone 4 (Retina dis­play) « Tho­mas Maier – web … Share and […]

[…] CSS for iPhone 4 (Retina dis­play) « Tho­mas Maier – web & com­mu­ni­ca­tion designerthomasmaier.me […]

[…] Zobacz res­ztę arty­kułu: CSS for iPhone 4 (Retina dis­play) « Tho­mas Maier – web … […]

=== popurls.com === popu­lar today…

yeah! this story has ente­red the popu­lar today sec­tion on popurls.com…

[…] here: CSS for iPhone 4 (Retina dis­play) « Tho­mas Maier – web & com­mu­ni­ca­tion desi­gner 23 June 2010 | Unca­te­go­ri­zed | Track­back | del.icio.us | Stum­ble it! | View Count : 0 Next Post […]

[…] CSS for iPhone 4 (Retina dis­play) « Tho­mas Maier – web … […]

[…] This post, and the rela­ted CSS code to tar­get the iPhone 4’s brow­ser, came through my Twit­ter stream mul­ti­ple times today. Tho­mas Maier wri­tes about tar­ge­ting the Mobile Safari brow­ser with CSS media que­ries on his blog. […]

[…] This post was Twit­ted by anthonyherron […]

[…] CSS for iPhone 4 (Retina dis­play) « Tho­mas Maier – web … […]

[…] CSS for iPhone 4 (Retina dis­play) « Tho­mas Maier – web & com­mu­ni­ca­tion desi­gner (tags: css iphone) […]

[…] CSS for iPhone 4 (Retina dis­play) « Tho­mas Maier – web … […]

[…] CSS for iPhone 4 (Retina dis­play) « Tho­mas Maier – web … […]

[…] CSS f&#959r iPhone 4 (Retina &#1281&#1110&#1109&#1088&#406&#1072&#1091) « Tho­mas Maier –… […]

[…] CSS f&#959r iPhone 4 (Retina &#1281&#1110&#1109&#1088&#406&#1072&#1091) « Tho­mas Maier –… […]

[…] CSS for iPhone 4 (Retina dis­play) « Tho­mas Maier – web & com­mu­ni­ca­tion designer […]

[…] CSS for iPhone 4 (Retina dis­play) « Tho­mas Maier – web & com­mu­ni­ca­tion designer […]

[…] CSS for iPhone 4 (Retina dis­play) « Tho­mas Maier – web & com­mu­ni­ca­tion designer […]

[…] CSS for iPhone 4 (Retina dis­play) « Tho­mas Maier – web & com­mu­ni­ca­tion designer […]

[…] CSS for iPhone 4 (Retina dis­play) « Tho­mas Maier – web & com­mu­ni­ca­tion designer […]

[…] CSS for iPhone 4 (Retina dis­play) « Tho­mas Maier – web & com­mu­ni­ca­tion designer […]

[…] CSS for iPhone 4 (Retina dis­play) « Tho­mas Maier – web & com­mu­ni­ca­tion designer […]

[…] CSS for iPhone 4 (Retina dis­play) « Tho­mas Maier – web & com­mu­ni­ca­tion designer […]

[…] detec­tar si es un iPhone 4 (por Tho­mas Maier): […]

[…] CSS for iPhone 4 (Retina dis­play) | The Sacred & The Profane […]

[…] nicht mehr so gut aus­sieht. Ich möchte aber auch ungern auf ne Brow­ser­wei­che set­zen… Update: Lösung gefun­den 17.10.2011 | 2 Kom­men­tare 16.10.2011 | 0 Kom­men­tare 14.10.2011 | 3 […]

[…] indi­ca­ting pro­blems in fin­ding or iden­ti­fy­ing the links on a page. Here are two exam­ples here and here. By loo­king at the arti­cle, would you tell that that it con­tains a link? I don’t think so. […]