Get new jQuery plugins just once a week
March 9, 2014
Responsive Image Maps
rwdImageMaps is a jQuery plugin that allows image maps to be used in a responsive design by recalculating the area coordinates to match the actual image size on load and window.resize
- If possible, add correct, unitless width and height attributes to your image map images. You can override these in CSS to make them responsive.
- Add a link to jQuery in your page, preferably at the bottom just before the closing
- After jQuery, either in a
<script> block or a separate file, call:
Created by Matt Stow
Sign up for our weekly newsletter.