Is there any media query that target only iphone 6s plus. My code working fine on iphone 6plus but there is some issue in iphone 6s plus. Is there any way to write specific media query for iphone 6s plus.
Any help would be appreciated.
Is there any media query that target only iphone 6s plus. My code working fine on iphone 6plus but there is some issue in iphone 6s plus. Is there any way to write specific media query for iphone 6s plus.
Any help would be appreciated.
For Landscape
@media only screen
and (min-device-width : 414px)
and (max-device-width : 736px)
and (width : 736px)
and (orientation : landscape)
and (color : 8)
and (device-aspect-ratio : 414/736)
and (aspect-ratio : 736/414)
and (device-pixel-ratio : 3)
and (-webkit-min-device-pixel-ratio : 3)
{ }
Portrait
@media only screen
and (min-device-width : 414px)
and (max-device-width : 736px)
and (width : 414px)
and (height : 736px)
and (orientation : portrait)
and (device-aspect-ratio : 414/736)
and (aspect-ratio : 414/736)
and (device-pixel-ratio : 3)
and (-webkit-min-device-pixel-ratio : 3)
{ }
For Landscape :
/* IPHONE 6 Plus Detection */
@media only screen
and (min-device-width : 414px)
and (max-device-width : 736px)
and (orientation : landscape)
and (-webkit-min-device-pixel-ratio : 3)
{
/* code */
}
For portrait :
@media only screen
and (min-device-width : 414px)
and (max-device-width : 736px)
and (device-width : 414px)
and (device-height : 736px)
and (orientation : portrait)
and (-webkit-min-device-pixel-ratio : 3)
and (-webkit-device-pixel-ratio : 3)
{
/* code */
}