font awesome icon is not appearing in IE 11, but showing in other browsers

I had the same issue, I solved it by adding this meta tag as the FIRST tag in <head>: <meta http-equiv=”X-UA-Compatible” content=”IE=edge”> Also, according to the official documentation, check the following: For Internet Explorer: you don’t serve files with no-store option in Cache-control header (Ref: #6454); For Internet Explorer and HTTPS: you don’t serve files … Read more

Vertical alignment of text and icon in button

There is one rule that is set by font-awesome.css, which you need to override. You should set overrides in your CSS files rather than inline, but essentially, the icon-ok class is being set to vertical-align: baseline; by default and which I’ve corrected here: <button id=”whatever” class=”btn btn-large btn-primary” name=”Continue” type=”submit”> <span>Continue</span> <i class=”icon-ok” style=”font-size:30px; vertical-align: … Read more

How to vertically align text with icon font?

In this scenario, since you are working with inline-level elements, you could add vertical-align: middle to the span elements for vertical centering: .nav-text { vertical-align: middle; } Alternatively, you could set the display of the parent element to flex and set align-items to center for vertical centering: .menu { display: flex; align-items: center; }

How do I include a font awesome icon in my svg?

i is not valid SVG. You need to include the actual character that displays the icon. If you take a look at font awesome’s stylesheet you will see… .icon-group:before { content: “\f0c0”; } .icon-link:before { content: “\f0c1”; } .icon-cloud:before { content: “\f0c2”; } .icon-beaker:before { content: “\f0c3”; } .icon-cut:before { content: “\f0c4”; } .icon-copy:before { … Read more

Laravel 5.7 + Font Awesome

Laravel 5.7 through 7.x using Font Awesome 5 (The Right Way) Build your webpack.mix.js configuration. mix.setResourceRoot(‘../’); mix.setPublicPath(‘public’) mix.js(‘resources/js/app.js’, ‘public/js’) .sass(‘resources/sass/app.scss’, ‘public/css’); Install the latest free version of Font Awesome via a package manager like npm. npm install @fortawesome/fontawesome-free –save-dev This dependency entry should now be in your package.json. // Font Awesome “devDependencies”: { “@fortawesome/fontawesome-free”: “^5.15.3”, … Read more