django-fontawesome
django-fontawesome copied to clipboard
How to change the icon size
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
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 😉