Font Awesome Icon is getting cut off

Viewed 3720

font awesome icon is getting cut off on the left hand side.

Snapshot

enter image description here

Below is my code

<div class="media-left">
  <i class="fa fa-search fa-5x text-white"></i>
</div> 

Css

.media-left{
 display: table-cell;
 vertical-align: top;
 }
    .text-white {
        color: #fff;
    }
    .fa-5x {
        font-size: 5em;
    }
4 Answers

It might resolve your issue letter-spacing: 1px;

There is the main restriction of font icons: it should be used only with specific font sizes for avoiding artifacts https://fontawesome.com/how-to-use/on-the-web/styling/sizing-icons

As mentioned @Dmitro it might help if you are using not guaranteed font sizes or using dynamic scaling of your content

letter-spacing: 1px;

Also additionally next CSS adjustment might help too :

transform: rotate(0.03deg);
Related