get your screen size for media query code example
Example 1: css different sreen size
/* For Mobile */
@media screen and (max-width: 540px) {
.view {
width: 400px;
}
}
/* For Tablets */
@media screen and (min-width: 540px) and (max-width: 780px) {
.view {
width: 600px;
}
}
Example 2: media queries
@media all and (max-width: 699px) and (min-width: 520px) {
ul li a {
padding-left: 21px;
background: url(../images/email.png) left center no-repeat;
}
}