0
0
mirror of https://github.com/lipis/flag-icons.git synced 2024-11-21 18:38:57 +01:00
flags/README.md
2013-09-26 02:05:44 +02:00

911 B

country-flag-icons

CSS for svg based country flag icons. See the demo.

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.

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

Credits

This project wouldn't exist without the awesome collection of svg flags: koppi/iso-country-flags-svg-collection