Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Font-Awesome Icon not resizing

I have 3 font-awesome icons side-by-side in a dev tag. On mobile there were a bit too small. I put this in my code but this specific icon doesn't change size?

<i class="fa fa-heart fa-2x"></i>

And here's how they look:

enter image description here

CSS:

hover-info .fa .fa-heart {
    font-size: 2em;
}
like image 563
Taylor Gagne Avatar asked Nov 02 '25 08:11

Taylor Gagne


1 Answers

This is working in my browser:

.fa-heart {
  font-size: 4em;
}

Maybe your reference to 'hover-info' is causing the issue.

NOTE: your 'css' file has to be loaded after fontawesome.

like image 114
Franco Avatar answered Nov 03 '25 23:11

Franco



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!