0
0
mirror of https://github.com/lipis/flag-icons.git synced 2024-11-21 18:38:57 +01:00
* 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:
Arun Kumar 2022-09-01 22:31:31 +05:30 committed by GitHub
parent 6dfe532a00
commit 48e5cb03b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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