Detecting iPhone 5 with Media Queries

Here’s a quick way to detect the new tall screen iPhone and iPod Touch using a media query:

@media (device-height: 568px) and (-webkit-min-device-pixel-ratio: 2) {
    /* iPhone 5 and tall iPod Touch (5th generation) */
}

The actual height in pixels is 1136 which is 568 X 2.