I have a problem with the external link character not showing in a pseudo element style. Other characters are showing.
Font-Awesome 5.0.6 free, CSS/Webfont version, included via CDN: https://use.fontawesome.com/releases/v5.0.6/css/all.css
This works in my normal body content:
<i class="fas fa-external-link-alt"></i>
In CSS, this doesn't work:
a:after {
font-family: 'Font Awesome 5 Free';
content: '\f35d';
}
Using another character in the pseudo does work:
a:after {
font-family: 'Font Awesome 5 Free';
content: '\f152';
}
According the to documentation the external link icon is part of the FA5 Free set: https://fontawesome.com/icons/external-link-alt?style=solid
Is this a bug or am I missing something?
Edit 1: JS Fiddle example: https://jsfiddle.net/berjcaLy/4/
Edit 2:
Accidentally found out that wrapping the <a>
tag in <b>
or <strong>
will make the external link pseudo icon work. (JSfiddle updated, too)