Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

font awesome pseudo element

/* Old Version 5 CSS - Common properties to render all icons */
  .icon::before {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
  }

  /* Old Version 5 CSS - For referencing individual icons */
  .login::before {
    font-family: "Font Awesome 5 Free"; 
    font-weight: 900; 
    content: "f007";
  }

  .tps::before {
    font-family: "Font Awesome 5 Free"; 
    font-weight: 400; 
    content: "f1ea";
  }
Source by fontawesome.com #
 
PREVIOUS NEXT
Tagged: #font #awesome #pseudo #element
ADD COMMENT
Topic
Name
5+9 =