THC
THC

Reputation: 43

Trying to style the FA icon fab -fa-github in CSS Doesn't Work

I'm trying to style the FA icon fab fa-github in CSS. While the icon shows, no styling shows/changes to the icon, Here's what I'm using. Thank you.

HTML

<i class="fab fa-github"></i>

CSS

.fa-github {
    color: rgb(255, 81, 0);
    font-size: 150px;
}

Upvotes: 1

Views: 1001

Answers (1)

Dhaifallah
Dhaifallah

Reputation: 1825

Make sure you have the correct cdn link for fontawesome because everything is working just fine
here:

.fa-github {
    color: rgb(255, 81, 0);
    font-size: 150px;
}
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css" integrity="sha512-KfkfwYDsLkIlwQp6LFnl8zNdLGxu9YAA1QvwINks4PhcElQSvqcyVLLD9aMhXd13uQjoXtEKNosOWaZqXgel0g==" crossorigin="anonymous" referrerpolicy="no-referrer" />


<i class="fab fa-github"></i>

Upvotes: 1

Related Questions