css device width for tablet code example
Example 1: mobile tablet desktop media queries
Syntax:
@media( media feature ) {
}
The screen resolutions of different devices are listed below:
Mobile (Smartphone) max-width: 480px
Low Resolution Tablets and ipads max-width: 767px
Tablets Ipads portrait mode max-width:1024px
Desktops max-width:1280px
Huge size (Larger screen) max-width: 1281px and greater
Example 2: iphne media query csss
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px) { }