DEV Community


How to change fontawesome icon bg color

Muzammil Ahmed Khan
Ecommerce web developer using magento platform. Playing video games in free time.
・1 min read

ok here is simple trick to change font awesome icon bg color let say we have youtube icon which looks like this as default:

alt text

ok but i want to change it to red like on you tube so the simple trick is that you add inline style in i element like this style="color:#FF0000;" and that's it it will change icon back-ground color to red like on you tube.

alt text

Discussion (0)