O'Reilly logo

Responsive Web Design with jQuery by Gilberto Crespo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Exercise – creating different image versions for featured homepage images

As we have just seen, loading the correct image for each device is very important for our responsive site. So, let's practice this technique in our design showing different images in the following breakpoints:

  • Maximum width = 480
  • Maximum width = 1024
  • Minimum width = 1025

The following screenshot shows the site along with the photos I'm referring to, as we saw in Chapter 2, Designing Responsive Layouts/Grids. For this exercise, I'm referring to the highlighted images inside the boxes:

Exercise – creating different image versions for featured homepage images

For this activity, I recommend using the Foresight plugin because it provides a better visualization ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required