I have referenced then declared an icon
<i class="material-icons">face</i>
But how can I change the icon size?
On oficial site https://design.google.com/icons/ I can see they using classes like class="md-icon dp48"
but it is not working in my case.
you can change the font-size property, it will reflect on the icon because it's a "FONT ICON"
By reading the material design in github I found these useful stuff that might help you.
From the code above, there you can simply change or override the material css icons.
Sample code:
More details here
There is a size attribute associated with icon tag like check_circle
so using size attribute, we can change the size of the icons.
You can use normal css, but must override inline styling with:
font-size: 50px !important;
If I'm doing a one-off I usually just add a style= modification to the font-size in the tag. But yes long story short there's no real trick to it other than defining your own size styles to attach in css as a more permanent solution.
The best way to change the size of a Materialize Icon is by adding a modifier to the
i
class:You can find more on changing the icon size on the Materialize site under icons.