My legacy CSS file was a mess and I preferred not to touch it, so I cheated by doing this - please don't tell anyone :) Īlso to note, when I upgraded from Font Awesome version 4.7.0 to version 5.4. However I had really exhausted all my options so I checked the Computed Styles and saw clearly that the Font Awesome font was definitely not being used. I was expecting to see the font in strikeout if there was an issue. Check out Darrrrrren's answer below for more details. But FontAwesome apparently provides its own way to accomplish this (I was unaware of it before writing my answer). However when I looked in Chrome DevTools it really looked like Font Awesome was loaded: 357 Retro Photo Camera Icons - Free in SVG, PNG, ICO - IconScout 357 Retro Photo Camera Icons Browse & download free and premium 357 Retro Photo Camera Icons in colored outline, line, flat, glyph, isometric, gradient, dualtone, rounded design styles for web or mobile (iOS and Android) design, marketing, or developer projects. The following solution works with any type of icon font. You can make all your icons the same width so they can easily vertically align, like in a list or navigation menu. I saw Daniel's answer (above) and because my legacy CSS file was huge (and years old) I suspected that was the issue. To increase icon sizes relative to their container, use size prop with xs, sm, lg ( 33 increase), or use literal sizes (to scale it from 1x to 10x) 2x, 3x, 4x, 5x, 6x, 7x, 8x, 9x, 10x. Then I tried to copy the HTML and CSS to some legacy pages and suddenly I saw empty square boxes instead of the icons. I successfully installed Font Awesome using their CDN and javascript include (as described on this page).
0 Comments
Leave a Reply. |