Library name | Flag-Icon-CSS |
Difficulty | None |
Returned value | Graphic object |
Description | A collection of all country flags in SVG. |
Link | https://github.com/lipis/flag-icon-css |
Documentation | https://github.com/lipis/flag-icon-css |
License | MIT |
Library implementation
- Go to ‘Tools’ menu, select ‘Add library’ (read more how to add library here)
- Give a name to the library (Flag-Icon-CSS), add required file:
CSS: https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.3.0/css/flag-icon.min.css
- Add description (optional).
- Click ‘OK’.
How to use this library?
Add a flag in the cell(s) by adding a div, span or p element with flag-icon and flag-icon- class, where code is an alpha-2-code of a country. The size of flag can be adjusted with height in style section. Write:
<(div/span/p) class="flag-icon flag-icon-[alpha-2-code]" style="width:100%;height:(flag height)px">
Example:
<div class="flag-icon flag-icon-pl" style="width:100%;height:50px">
Ready spreadsheet is presented below: