GithubHelp home page GithubHelp logo

vilina / worldflags Goto Github PK

View Code? Open in Web Editor NEW

This project forked from uloga/worldflags

0.0 2.0 0.0 1.95 MB

World Flags - CSS Module : Sprite sizes from 16 to 64. Styles: flat and glossy

CSS 31.91% HTML 67.73% JavaScript 0.36%

worldflags's Introduction

WorldFlags

Styles: flat & glossy.

Sizes from 16 to 64

You can find examples at: WorldFlags Examples

Getting Started:

Paste the following code into the <head> section of your site's HTML.

<link rel="stylesheet" href="https://uloga.github.io/worldflags/css/flags.css">

After you get up and running, you can place WorldFlags just about anywhere with the <i> tag as shown in example below:

<!-- Extra Small f16 -->

<i class="f16_netherlands"></i>

<!-- Small f24 -->

<i class="f24_germany"></i>

<!-- Medium f32 -->

<i class="f32_england"></i>

<!-- Large f48 -->

<i class="f48_united_states"></i>

<!-- Extra Large f64 -->

<i class="f64_russia"></i>

Flag Styles

WorldFlags default style is set to flat, you can change it to glossy by copying and pasting following codes below into your main css file.

f16

[class^="f16_"], [class*=" f16_"] {
    background-image: url("https://uloga.github.io/worldflags/flags/f16-glossy.png");
}

f24

[class^="f24_"], [class*=" f24_"] {
    background-image: url("https://uloga.github.io/worldflags/flags/f24-glossy.png");
}

f32

[class^="f32_"], [class*=" f32_"] {
    background-image: url("https://uloga.github.io/worldflags/flags/f32-glossy.png");
}

f48

[class^="f48_"], [class*=" f48_"] {
    background-image: url("https://uloga.github.io/worldflags/flags/f48-glossy.png");
}

f64

[class^="f64_"], [class*=" f64_"] {
    background-image: url("https://uloga.github.io/worldflags/flags/f64-glossy.png");
}

worldflags's People

Contributors

uloga avatar

Watchers

James Cloos avatar Vilina avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.