Skip to content

All the flags of the world in a single, easy-to-use sprite.

License

Notifications You must be signed in to change notification settings

brodkinca/BCA-CSS-Flag-Sprite

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BCA Flag Icon Kit

All the flags of the world in a single, easy-to-use sprite.

Usage

1. Load the Stylesheet

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.

2. Add a Flag

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.

About

All the flags of the world in a single, easy-to-use sprite.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%