Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

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;
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #css #sreen #size
ADD COMMENT
Topic
Name
8+5 =