improving readme

master
Ondřej Hruška 6 years ago
parent c5281abf48
commit 510b7adf6d
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 6
      README.md

@ -36,11 +36,11 @@ This version does not include any of the FA helper classes (like `fa-spin`), and
to apply the font. Simply add the icon class, like `fa-star`, to your element, and the icon will appear in
its `::before` pseudo-element. This behavior is similar to fonts generated by fontello.
```
```html
<i class="icon-save"></i> abusing the italic element
```
```
```html
<div class="icon-save"> this works too</div>
```
@ -51,7 +51,7 @@ Another way to add the icon to an element is by adding `data-icon="&#1234;"` whe
code you copied from the preview HTML. This is a bit harder to use, but may be useful in some situations. You can also
use this method to sneak emoji or other characters into your pages as icons, but you have to html-encode them first.
```
```html
<i data-icon="&#x1F600;"></i> this is a grinning face emoji
```

Loading…
Cancel
Save