koppi/iso-country-flags-svg-collection — pull request #24 by dsch (2013-08-31 10:16:19+00:00)
Title: create css generator

Create CSS generator to use flag sheets in HTML. As for example jQueryUI stores all icons in one image, we could use flag sheet. Therefore you need a css file containing position of each individual flag.
Example:

.flag {
height: 30px;
width: 40px;
background-image: url("res-40x30-transparent.png");
background-repeat: no-repeat;
display: block;
overflow: hidden;
text-indent: -99999px;
background-position: -360px -480px;
}
.flag-gb { background-position: -40px -150px; }

HTML usage:

#### TODOs/Drawbacks:
* As I'm not so familiar with perl I wrote the CSS generator in python.
* the css generator creates also example HTML file, which should probably be part of the examples.