Why my icons aren't showing and what's the difference btw fab and fas | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why my icons aren't showing and what's the difference btw fab and fas

https://code.sololearn.com/W5adTr1WYCOz/?ref=app

8th Aug 2019, 12:53 PM
daniel
daniel - avatar
11 Answers
+ 5
<script src="https://kit.fontawesome.com/c21a0a52c1.js"></script> daniel If you are using fonsawesome icons then use above link to import svg icons. they provide webfont based icons which can be imported as css files. https://code.sololearn.com/WCP1iB1H0bNB/?ref=app
8th Aug 2019, 1:07 PM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar
+ 4
daniel Then that user must be using webfont icons and may have imported fontsawesome in css part Synatx : @import url('path to css file');
8th Aug 2019, 1:16 PM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar
+ 4
daniel the code I have linked to my previous answer imports / includes javascript file by using <script> tag
8th Aug 2019, 1:21 PM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar
+ 3
You need to import library to use it's features
8th Aug 2019, 12:58 PM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar
0
What do u mean by import library?
8th Aug 2019, 12:59 PM
daniel
daniel - avatar
0
🇮🇳Omkar🕉 how do i do that
8th Aug 2019, 1:00 PM
daniel
daniel - avatar
0
🇮🇳Omkar🕉 it didn't show in ur code too
8th Aug 2019, 1:12 PM
daniel
daniel - avatar
0
🇮🇳Omkar🕉 ohh nvm i have to wait for it to load
8th Aug 2019, 1:13 PM
daniel
daniel - avatar
0
But i have seen someones code and he used a tag with no href like the one i am using in my code does that change anything?
8th Aug 2019, 1:14 PM
daniel
daniel - avatar
0
🇮🇳Omkar🕉 is that import by js?
8th Aug 2019, 1:19 PM
daniel
daniel - avatar
0
So i can write that on my js page instead of doing it on my html page
8th Aug 2019, 1:24 PM
daniel
daniel - avatar