All the flags of the world in a single, easy-to-use sprite.
Host it locally or load it from GitHub:
<link rel="stylesheet" type="text/css" href="http://cloud.github.com/downloads/brodkinca/BCA-CSS-Flag-Sprite/css/flags.css"/>
Alternatively, download the project and import the file into your LESS stylesheets:
@import 'flags/less/flags.less';
LESS users may find it necessary to override the path to the sprite images. The @pathFlagImageDir
variable can be used to set that path.
Users of Twitter's Bootstrap project will find the syntax to be very similar to their icon syntax.
<i class="flag-us"></i>
For a complete list of country codes please see the official ISO list of country names and codes.