Reputation: 7251
I try to change the size of my icon download here :
http://zurb.com/playground/foundation-icon-fonts-3
In the documentation they say :
<i class="fi-[icon]"></i>
So for exemple i use :
But the size is 16px and they don't say how can we change...
Upvotes: 5
Views: 6081
Reputation: 113
If you are gonna use more icons with exact same appearance then in the downloaded css change the font-size to inherit and create a class in your local css with the required font-size, you can apply this to any property.
.fi-yen:before,....,.fi-zoom-in:before,.fi-zoom-out:before
{
font-family: "foundation-icons";
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
-webkit-font-smoothing: antialiased;
display: inline-block;
text-decoration: inherit;
font-size:inherit; #add this
}
and in your local css file
.icons{
font-size:25px;
}
now you are good to use this class in addition to your icon class. so your html will look something like this
<span class="icons"><i class="fi-social-pinterest"></i></span>
<span class="icons"><i class="fi-social-twitter"></i></span>
Upvotes: 0
Reputation: 5105
Lets take a look in font icon foundation download file. You need to inspect element there in preview.html of one of icon.
<i class="step fi-power size-72"></i>
Please add size between 12 and 72.
Upvotes: 1
Reputation: 252
Lets say you are using the heart Icon.
The css may looks like that:
.fi-heart {
font-size: 20px
}
Use what ever size you like instead of the 20px.
Upvotes: 3