I tried this, but this did not work:
.stackoverflow::before {
font-family: 'FontAwesome';
content: "\f16c ";
}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css">
<a class="stack-link stackoverflow" href="http://stackoverflow.com">StackOverflow</a>
Run codeHide resultIs it possible to add spaces with a selector ::beforeand contenthow is it?
source
share