Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change the icon size #33

Open
Jakub41 opened this issue Aug 21, 2017 · 1 comment
Open

How to change the icon size #33

Jakub41 opened this issue Aug 21, 2017 · 1 comment

Comments

@Jakub41
Copy link

Jakub41 commented Aug 21, 2017

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

@Benbb96
Copy link

Benbb96 commented Jul 19, 2018

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 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants