Grow your CSS skills. Land your dream job.

including data icons

  • # May 21, 2013 at 1:34 am

    can any one please help me to include data icons. here is my code.
    this is my main page



     


    n there is my style.css:

    @font-face {
    font-family: ‘icomoon';
    src:url(‘fonts/icomoon.eot’);
    src:url(‘fonts/icomoon.eot?#iefix’) format(‘embedded-opentype’),
    url(‘fonts/icomoon.woff’) format(‘woff’),
    url(‘fonts/icomoon.ttf’) format(‘truetype’),
    url(‘fonts/icomoon.svg#icomoon’) format(‘svg’);
    font-weight: normal;
    font-style: normal;
    }

    /* Use the following CSS code if you want to use data attributes for inserting your icons */
    .icon-signup:before {
    font-family: ‘icomoon';
    content: attr(data-icon);
    speak: none;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    }

    /* Use the following CSS code if you want to have a class per icon */
    /*
    Instead of a list of all class selectors,
    you can use the generic selector below, but it’s slower:
    [class*=”icon-“] {
    */

    .icon-signup {
    font-family: ‘icomoon';
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    }
    .icon-signup:before {
    content: “e000″;
    }

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".