mirror of
https://github.com/lipis/flag-icons.git
synced 2024-11-21 18:38:57 +01:00
Added CDN (#1032)
* Update README.md * Update README.md * Update README.md Co-authored-by: Arun Kumar <109509109+dev-itsarun@users.noreply.github.com> Co-authored-by: Lipis <lipiridis@gmail.com>
This commit is contained in:
parent
6dfe532a00
commit
48e5cb03b2
@ -20,6 +20,15 @@ First, you need to import css:
|
||||
import "/node_modules/flag-icons/css/flag-icons.min.css";
|
||||
```
|
||||
|
||||
or use CDN:
|
||||
|
||||
```html
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://cdn.jsdelivr.net/gh/lipis/flag-icons@6.6.6/css/flag-icons.min.css"
|
||||
/>
|
||||
```
|
||||
|
||||
For using the flags inline with text add the classes `.fi` and `.fi-xx` (where `xx` is the [ISO 3166-1-alpha-2 code](https://www.iso.org/obp/ui/#search/code/) of a country) to an empty `<span>`. If you want to have a squared version flag then add the class `fis` as well. Example:
|
||||
|
||||
```html
|
||||
|
Loading…
Reference in New Issue
Block a user