October 2016
Beginner to intermediate
709 pages
16h 52m
English
In this recipe, you will learn how to resize an image with a CSS media query. This can be useful in a number of situations, especially those where you want to download only one image and use it in different size versions in your responsive layout.
This is a good method for size variation that can be handled on the client side, but be careful not to abuse this method by causing the client to download a really large image file and do heavy resizing in their browser. There are better ways to do that, which were discussed in Chapter 1, Responsive Elements and Media.
I recommend putting together a small HTML page with a h1 title, the wrap element, and inside wrap, an image and a paragraph ...
Read now
Unlock full access