CSS for iPhone 4 (Retina display)
Since the iPhone 4 got introduced especially interface designers were wondering: What will change designing for a display with twice the pixel ratio?
So if you feel like you need to make some adjustments to your CSS just for HiRes displays, this is how you do it.
Target with specific CSS:
<link rel="stylesheet" media="only screen and (-webkit-min-device-pixel-ratio: 2)" type="text/css" href="../iphone4.css" />
The reason is, that because every pixel is half the visual size, you may have to double the values of some CSS properties. Especially for images shown on a Retina display this comes in handy. You will be able to see the full quality of up to a 960 pixels wide image on those devices.
How do I target the iPad? Read here.

Two other interesting articles about the Retina display: What does 320dpi mean to designers? by Tim Van Damme and How to make your web content look stunning on the iPhone 4’s new Retina display by Aral Balkan.
[…] here to read the rest: CSS for iPhone 4 (Retina display) « Thomas Maier – web … This entry was posted on Wednesday, June 23rd, 2010 at 6:35 pm and is filed under Uncategorized. […]
[…] more: CSS for iPhone 4 (Retina display) « Thomas Maier – web … Share and […]
[…] CSS for iPhone 4 (Retina display) « Thomas Maier – web & communication designerthomasmaier.me […]
[…] Zobacz resztę artykułu: CSS for iPhone 4 (Retina display) « Thomas Maier – web … […]
=== popurls.com === popular today…
yeah! this story has entered the popular today section on popurls.com…
[…] here: CSS for iPhone 4 (Retina display) « Thomas Maier – web & communication designer 23 June 2010 | Uncategorized | Trackback | del.icio.us | Stumble it! | View Count : 0 Next Post […]
[…] CSS for iPhone 4 (Retina display) « Thomas Maier – web … […]
[…] This post, and the related CSS code to target the iPhone 4’s browser, came through my Twitter stream multiple times today. Thomas Maier writes about targeting the Mobile Safari browser with CSS media queries on his blog. […]
[…] This post was Twitted by anthonyherron […]
[…] CSS for iPhone 4 (Retina display) « Thomas Maier – web … […]
[…] CSS for iPhone 4 (Retina display) « Thomas Maier – web & communication designer (tags: css iphone) […]
[…] CSS for iPhone 4 (Retina display) « Thomas Maier – web … […]
[…] CSS for iPhone 4 (Retina display) « Thomas Maier – web … […]
[…] CSS fοr iPhone 4 (Retina ԁіѕрƖау) « Thomas Maier –… […]
[…] CSS fοr iPhone 4 (Retina ԁіѕрƖау) « Thomas Maier –… […]
[…] CSS for iPhone 4 (Retina display) « Thomas Maier – web & communication designer […]
[…] CSS for iPhone 4 (Retina display) « Thomas Maier – web & communication designer […]
[…] CSS for iPhone 4 (Retina display) « Thomas Maier – web & communication designer […]
[…] CSS for iPhone 4 (Retina display) « Thomas Maier – web & communication designer […]
[…] CSS for iPhone 4 (Retina display) « Thomas Maier – web & communication designer […]
[…] to target iPhone4 with CSS and […]
[…] CSS for iPhone 4 (Retina display) « Thomas Maier – web & communication designer […]
[…] CSS for iPhone 4 (Retina display) « Thomas Maier – web & communication designer […]
[…] CSS for iPhone 4 (Retina display) « Thomas Maier – web & communication designer […]
[…] Artikel zum Thema CSS Optimierung für das iPhone 4 “CSS for iPhone 4 (Retina display)” […]
http://thomasmaier.me/blog/2010/06/23/css-for-iphone-4-retina-display/ CSS for iPhone 4 (Retina display)
@davidhellmann Deshlab http://bit.ly/hCNt81
[…] detectar si es un iPhone 4 (por Thomas Maier): […]
[…] CSS for iPhone 4 (Retina display) | The Sacred & The Profane […]
[…] nicht mehr so gut aussieht. Ich möchte aber auch ungern auf ne Browserweiche setzen… Update: Lösung gefunden 17.10.2011 | 2 Kommentare 16.10.2011 | 0 Kommentare 14.10.2011 | 3 […]
[…] indicating problems in finding or identifying the links on a page. Here are two examples here and here. By looking at the article, would you tell that that it contains a link? I don’t think so. […]