Font awesome as CSS background image


Look at the file upload area. The grey mark in the middle should be a font awesome icon. I need to set this as a background image using the css :before selector. However it is not showing.

See this page for how it should look , but I can't code like this.

This is the icon I want to use:

Please can you help work out what I have done wrong?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Brandon LyonSenior Frontend DeveloperCommented:
1. It looks like they're loading different font files (v4.7 vs 5+) which have different icon sets. The code for cloud-upload on 4.7 is \f0ee not \f382 or \25ae
2. The font name in your 4.7 CSS file isn't "Font Awesome\ 5 Free" it's "FontAwesome".

.gform_drop_area:before {
  content: "\f0ee";
  font-family: "FontAwesome";

Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
petewinterAuthor Commented:
Perfect. Many thanks
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.