<div class="box">
  <a href="#">Hello there!</a>
  <p>If you want to use a FontAwesome icon in the <code>:before</code> pseudo element with a link, you may notice it also gets underlined.</p>
  <p>Use <code>display: inline-block;</code> to remove the text-decoration there! Check it out and remove it from the <code>:before</code> in the CSS. :)</p>
</div>
a {
  color: #cd0000;
  font-size: 200%;
}

a:before {
  display: inline-block;
  font-family: FontAwesome;
  content: '\f199';
  padding-right: 1rem;
}

.box {
  display: block;
  margin: 1.5rem auto;
  font-family: Arial, sans-serif;
  max-width: 500px;
  line-height: 2.5;
}

code {
  background: #ddd;
  padding: 0.5rem;
}
Run Pen

External CSS

  1. https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css

External JavaScript

This Pen doesn't use any external JavaScript resources.