Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS including data icons

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #44919

    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”;
    }

    #135810
    Paulie_D
    Member
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.