2

I have structured like this

ci3
 -application
 -assets
    -css
      -home
        -main.css
    -fonts
      -home
      -icon
        -font-awesome

I have some trouble, in main.css to call font-awesome. How to call it? Actually, this is my code :

@font-face {
  font-family: 'FontAwesome';
  src: url('???');  //how to call it ?
  font-weight: normal;
  font-style: normal;
}

1 Answer 1

1

In view of CSS code, you can go three directories/folders back and then navigate to your font-awesome file. Checkout for the extension.

@font-face {
  font-family: 'FontAwesome';
  src: url('../../../fonts/icon/font-awesome');  /* Go to assets folder */
  font-weight: normal;
  font-style: normal;
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.