Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

Changing Image depending on Mobile or Desktop HTML & CSS

#img1 {display:block;}
#img2 {display:none}

@media all and (max-width: 499px) {
    #img1 {display: none;}
    #img2 {display: block;}
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Changing #Image #depending #Mobile #Desktop #HTML #CSS
ADD COMMENT
Topic
Name
4+1 =