Some bootstrap doesn't work on Codepen

Some bootstrap doesn't work on Codepen
0

#1

I used the fa class on codepen like this: <i class = "fa fa-trash"><button class = "btn btn-default">[whatever text]</button></i>, but it didn’t show. I put the bootstrap <link> inside of it and the btn class worked, but the fa class didn’t work. does anyone know why?


#2

can you post a link to your codepen? I used font awesome without a problem recently on codepen so not sure what you are experiencing…


#3

You should link font-awesome with your codepen, in your codepen settings > HTML > stuff for <head> inside that place this link, and then try the same code which you have posted,

<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous">


#4

thanks! I’ll try that


#5

that worked! thanks!