October 2016
Beginner to intermediate
709 pages
16h 52m
English
The media query is another useful and highly customizable method for responsive images. This is different than responsive fluid width achieved by the percent-width method. Your design may require some specific image widths for different screen size ranges and a fluid width would break your design.
This method only requires one image, and makes the client's browser resize the image instead of the server.
The HTML code is simple, using the standard image tag, create an image element, as follows:
<img alt="robot image" src="robot.png">
To start with a simple version, create a media query that will detect the browser window's size and deliver a larger image for browser screens larger than ...
Read now
Unlock full access