SCSS to create css for icons with flags for countries
css for for elements to display flags representing a country
Add [fa
] and fa-flag-XX
and [fa-flag-squared
] where
fa
is for inline elements (eq.<i>
or<span>
)fa-flag-XX
for the flag for country-code XX where XX is the 2-charts country-code given by ISO 3166-1-alpha-2 2-char codes for countriesfa-flag-squared
(optional) will give a square flag instead of the default 4/3-size
Example
<button><i class="fa fa-flag-dk"></i>This is Denmark</button>
<button><i class="fa fa-flag-de"></i>This is Germany</button>
bower install https://github.com/FCOO/lang-flag-icon.git --save
http://FCOO.github.io/lang-flag-icon/demo/
This plugin is licensed under the MIT license.
Copyright (c) 2020 FCOO
Niels Holt nho@fcoo.dk