I am using media query to target iphone/ipad/mobile.
I have written the following media query.
But my problem is if i write css in media query of mobile 'max-device-width : 480px' it will also apply to iphone.
Is i am doing wrong ??
For mobile : like samsung grand(480 * 800):
@media only screen
and (max-device-width : 480px)
{
}
For iphone:
@media only screen
and (max-device-width : 320px)
{
}
For ipad:
@media screen and (min-width:760px)
{
}
Also added meta tag:
<meta name="viewport" content="user-scalable=no,initial-scale=1">