Resizing Images Based On Browser Window Size

Filed under: DOM Manipulation, Utilities

In fluid layouts it is easy to format the text to adjust nicely when the window is resized, but the images are not as fluid-friendly. This Quick Tip shows you how to swap between two image sizes based on the current size of the browser, div, or whatever you decide to make the deciding factor. For those looking for a real life example, “uses this technique”:Ʊate on their artist pages.

Read Tutorial Page View Demo