Space between link and icon, fontawesome

Joe picture Joe · Jan 15, 2015 · Viewed 87.7k times · Source

What's the best way to get a space between the link/paragraph and the icon?

Doesn't work to just put a space before the text because it will be changed back when you minify/uglify the project.

I tried with all kinds of padding and margins. Can't get them to separate.

Answer

Christina picture Christina · Jan 15, 2015

I would use the .fa-fw class. For example: <i class="fa fa-cog fa-fw"> This adds a visual space (that won't get stripped out) and it's consistent, so when/if the elements stack it looks a lot better.

Instructions: http://fortawesome.github.io/Font-Awesome/examples/enter image description here