Skip to content

Instantly share code, notes, and snippets.

@cfenzo
Created July 3, 2012 11:11
Show Gist options
  • Save cfenzo/3039125 to your computer and use it in GitHub Desktop.
Save cfenzo/3039125 to your computer and use it in GitHub Desktop.
apple-touch-startup-image for iOS devices (CSS only solution)
<!-- 320x460 for iPhone 3GS -->
<link rel="apple-touch-startup-image" media="(max-device-width: 480px) and not (-webkit-min-device-pixel-ratio: 2)" href="startup-iphone.png" />
<!-- 640x920 for retina display -->
<link rel="apple-touch-startup-image" media="(max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2)" href="startup-iphone4.png" />
<!-- iPad Portrait 768x1004 -->
<link rel="apple-touch-startup-image" media="(min-device-width: 768px) and (orientation: portrait)" href="startup-iPad-portrait.png" />
<!-- iPad Landscape 1024x748 -->
<link rel="apple-touch-startup-image" media="(min-device-width: 768px) and (orientation: landscape)" href="startup-iPad-landscape.png" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment