2

I was wondering why I can't seem to increase the size of my icon.

This is my config html:

<i class="fa fa-hand-o-up"></i>

in my stylesheet I'm doing this:

.fa-hand-o-up{
   color: white;
   font-size: 50px;
}

The color works but the font-size doesn't, can someone help me?

chintuyadavsara
  • 1,509
  • 1
  • 12
  • 23
  • 3
    Use your browser dev tools to figure out where the font-size for that element actually comes from, there’s likely a rule with higher specificity. – misorude Oct 01 '18 at 10:22

4 Answers4

1

Try this

<i class="fa fa-hand-o-up" style="font-size:50px;color:white;"></i>
1

Try adding replace font-size: 50px line of your CSS by font-size: 50px !important

M.javid
  • 6,387
  • 3
  • 41
  • 56
Abdul Basit
  • 1,352
  • 1
  • 10
  • 18
1

To increase Font Awesome icon size you can use "fa-2x", "fa-3x",... classes:

<i class="fa fa-hand-o-up fa-2x"></i>

Font Awesome

Abolfazl Panbehkar
  • 700
  • 2
  • 7
  • 21
1

Try this:

.fa.fa-hand-o-up {
  font-size: 50px !important;
}
halilb
  • 4,055
  • 1
  • 23
  • 31