mirror of
https://github.com/lipis/flag-icons.git
synced 2024-11-22 19:47:45 +01:00
23 lines
621 B
Markdown
23 lines
621 B
Markdown
country-flag-icons
|
|
==================
|
|
|
|
|
|
CSS classes
|
|
-----------
|
|
|
|
|
|
`.flag-icon` sets the correct proportions for the flag icon when used inline with text.
|
|
|
|
`.flag-icon-xx` sets the `background-image` with the correct flag, where `xx` is the [ISO 3166-1-alpha-2 code](http://www.iso.org/iso/country_names_and_code_elements).
|
|
|
|
`.flag-icon-squared` for the squared version of the flag.
|
|
|
|
`.flag-icon-background` sets the the background to `position: 50%`, `repeat:no-repeat` and `size:contain`.
|
|
|
|
|
|
Usage
|
|
-----
|
|
|
|
<span class="flag-icon flag-icon-gr"></span>
|
|
<span class="flag-icon flag-icon-gr flag-icon-squared"></span>
|