How could I style the color, size and shadow of icons from Font Awesome's Icons?
For example, Font Awesome's site will show some icons in white and some in red but won't show the CSS
for how to style them that way ...
To change the color of the icons, simply add or change the “color” property in the CSS. So to change the color of the icons to red in the above example, add “color:red” to the .
You can customize Font Awesome Icon fa Icon Fa as per your requirement, suppose that you need to chnage the color of Fa icon or change the size of size. It is pretty simple to change color of icon Fa just add style="color:red" it will make font color red.
To increase icon sizes relative to their container, use the fa-lg (33% increase), fa-2x , fa-3x , fa-4x , or fa-5x classes. If your icons are getting chopped off on top and bottom, make sure you have sufficient line-height.
Select the SVG of font-awesome located in your extracted zip inside fonts. Repeat the procces uploading your own svg files. Inside Home (at the header of the page) Select the icons you want to download, customize them to give your custom names and select publish to have a link or download the fonts and css.
Given that they're simply fonts, then you should be able to style them as fonts:
#elementID { color: #fff; text-shadow: 1px 1px 1px #ccc; font-size: 1.5em; }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With