Skip to content

Commit 7549e35

Browse files
committed
Fix #35 by mentioning unitless attributes. Other minor changes
1 parent 7dcf4d7 commit 7549e35

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,30 @@
44

55
---
66

7-
**Usage:**
7+
#### Usage:
88

9-
* If possible, add correct `width` and `height` attributes to your image map images. You can override these in CSS to make them responsive.
9+
* If possible, add [correct, unitless](http://dev.w3.org/html5/markup/img.html) `width` and `height` attributes to your image map images. You can override these in CSS to make them responsive.
1010
* Add a link to jQuery in your page, preferably at the bottom just before the closing `</body>`
1111
* After jQuery, either in a `<script>` block or a separate file, call:
1212

13-
`$('img[usemap]').rwdImageMaps();`
13+
```js
14+
$('img[usemap]').rwdImageMaps();
15+
```
1416

1517
You may also want to wrap it inside a `$(document).ready()` function, like so:
1618

17-
```
19+
```js
1820
$(document).ready(function(e) {
1921
$('img[usemap]').rwdImageMaps();
2022
});
2123
```
2224

23-
---
24-
25-
**Demo:**
25+
#### Demo:
2626

27-
http://www.mattstow.com/experiment/responsive-image-maps/rwd-image-maps.html
27+
http://mattstow.com/experiment/responsive-image-maps/rwd-image-maps.html
2828

2929
---
3030

3131
Copyright (c) 2012 [Matt Stow](http://mattstow.com)
32-
Licensed under the MIT license *(see [LICENSE](https://github.com/stowball/jQuery-rwdImageMaps/blob/master/LICENSE) for details)*
32+
Licensed under the MIT license *(see [LICENSE](https://github.com/stowball/jQuery-rwdImageMaps/blob/master/LICENSE) for details)*
33+
Minified version created with Online YUI Compressor: http://www.refresh-sf.com/yui/

0 commit comments

Comments
 (0)