different css for different screen sizes 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 query in css
@media screen and (min-width: 374px){
section#rent_sectionn {
padding: 0 20px !important;
}
}
Example 3: css media query responsive sizes
320px
480px
600px
768px
900px
1024px
1200px