django-fontawesome icon indicating copy to clipboard operation
django-fontawesome copied to clipboard

How to change the icon size

Open Jakub41 opened this issue 7 years ago • 1 comments

Hello, I'm working with Django and I would like to understand how to make a different size for the icon. I would like to have a bigger icon.

I used your package and the icon is shown which is home in my case. However, I don't understand how I can manipulate the size.

Thank you for help

Jakub41 avatar Aug 21 '17 14:08 Jakub41

It's probably too late but for the next one, you can use the large parameter of the fontawesome_icon template tag : {% fontawesome_icon 'home' large=True %} It wall add the fa-lg CSS class to the icon to make it bigger.

But the best is to change the font-size style property inside the HTML tag : <span style="font-size: 40px;">{% fontawesome_icon 'home' %}</span> Or you can use a CSS class 😉

Benbb96 avatar Jul 19 '18 10:07 Benbb96