There is a part of my site where I use the country flag as an icon for a list item.
For example, I have:
<ul>
<li id="at">Austria</li>
<li id="de">Germany</li>
</ul>
The accompanying CSS looks like this:
#at {
list-style-image: url('at.png');
}
#de {
list-style-image: url('de.png');
}
Can I replace this with a macro so that I don’t have to redefine CSS for each country? Something like a C-style macro would be awesome, but I'm not sure if CSS supports this.
t
#_country {
list-style_image: url('_country.png');
}
source
share