The image below does not use the above markup, but a variant with more breakpoints. Inspect source to learn more. It is split into three slices to demonstrate the various downsize settings (always, never, loaded), in that order.
For simplicity let's divide the horizontal plane in half, with a single breakpoint at 768px. In media queries we would write the following:
// this targets "mobile" h1 { font-size: 12px; } // this targets "desktop" @media only screen and (min-width: 768px) { h1 { font-size: 18px; } }
We can talk about this in terms of two ranges of x values:
Since we are talking about responsive images, and following the above layout, we need two (2) versions of the image:
jquery.smart_images is brought to you by In the Loft Studios