0
Welcome Guest! Login
0 items Join Now

Use FontAwesome in the CSS

    • NosyWeb's Avatar
    • NosyWeb
    • Sr. Rocketeer
    • Posts: 185
    • Thanks: 0

    Use FontAwesome in the CSS

    Posted 8 years 8 months ago
    • Hello,

      Is it possible to use FontAwesome in the custom.scss file ?

      For example, you would like to put :
      #activites ul li::before {
          content: "\f054";
      }

      But it seems it doesn't work.

      Thanks for your help.

      Regards.
    • Discover our french Joomla Magazine and our french Joomla videos tutorials
    • Matt's Avatar
    • Matt
    • Preeminent Rocketeer
    • Posts: 21576
    • Thanks: 3093
    • messin' with stuff

    Re: Use FontAwesome in the CSS

    Posted 8 years 8 months ago
    • is the FontAwesome font-family being specific anywhere for that particular HTML element?
    • SEARCH the forum first! These boards are rich in knowledge and vast in topics. This includes searching just the 'Solved' forums, using Google, and using ChatGPT :woohoo:
    • NosyWeb's Avatar
    • NosyWeb
    • Sr. Rocketeer
    • Posts: 185
    • Thanks: 0

    Re: Use FontAwesome in the CSS

    Posted 8 years 8 months ago
    • Matt's Avatar
    • Matt
    • Preeminent Rocketeer
    • Posts: 21576
    • Thanks: 3093
    • messin' with stuff

    Re: Use FontAwesome in the CSS

    Posted 8 years 8 months ago
    • right... FontAwesome is indeed a font... so you need to specify the font

      #activites ul li::before {
      content: "\f054";
      font-family: FontAwesome;
      }
    • SEARCH the forum first! These boards are rich in knowledge and vast in topics. This includes searching just the 'Solved' forums, using Google, and using ChatGPT :woohoo:

Time to create page: 0.038 seconds