Currently working on an HTML5 application for Android, iPhone, and Windows phone. Utilizing media queries to showcase different image files based on screen width.
When displaying the image through the CSS background-image
property, I can alter the image file by utilizing different CSS classes corresponding to the media query value. However, faced with limitations in changing the image when it is presented using the img
tag.
Interested in finding out if there is a method to modify the image source linked with the img
tag through CSS media queries?