Font Awesome 5, why is CSS content not showing?

If you are using the JS+SVG version Read this: Font Awesome 5 shows empty square when using the JS+SVG version First, you only need to include the CSS file of Font Awesome 5 either in the head tag using: <link rel=”stylesheet” href=”https://use.fontawesome.com/releases/v5.13.0/css/all.css”> Or within the CSS file: @import url(“https://use.fontawesome.com/releases/v5.13.0/css/all.css”) Then you need to correct the … Read more

How to center text vertically with a large font-awesome icon?

I just had to do this myself, you need to do it the other way around. do not play with the vertical-align of your text play with the vertical align of the font-awesome icon <div> <span class=”icon icon-2x icon-camera” style=” vertical-align: middle;”></span> <span class=”my-text”>hello world</span> </div> Of course you could not use inline styles and … Read more

Font Awesome 5 on pseudo elements shows square instead of icon

If you are using the JS+SVG version read this: Font Awesome 5 shows empty square when using the JS+SVG version You need to add font-weight:900 .myClass { font-size:45px; } .myClass::after { font-family: ‘Font Awesome 5 Free’; content: “\f008″; font-weight: 900; } <link rel=”stylesheet” href=”https://use.fontawesome.com/releases/v5.13.0/css/all.css”> <span class=”myClass”></span> The regular version of the icon, defined by the … Read more