0
0
mirror of https://github.com/lipis/flag-icons.git synced 2024-11-24 19:36:55 +01:00
flags/README.md

23 lines
621 B
Markdown
Raw Normal View History

2013-09-24 17:29:04 +02:00
country-flag-icons
==================
CSS classes
-----------
2013-09-25 22:00:00 +02:00
`.flag-icon` sets the correct proportions for the flag icon when used inline with text.
2013-09-24 17:29:04 +02:00
2013-09-25 22:00:00 +02:00
`.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).
2013-09-24 17:29:04 +02:00
2013-09-25 22:00:00 +02:00
`.flag-icon-squared` for the squared version of the flag.
2013-09-24 17:29:04 +02:00
2013-09-25 22:00:00 +02:00
`.flag-icon-background` sets the the background to `position: 50%`, `repeat:no-repeat` and `size:contain`.
2013-09-24 17:29:04 +02:00
Usage
-----
<span class="flag-icon flag-icon-gr"></span>
<span class="flag-icon flag-icon-gr flag-icon-squared"></span>