I am trying to use the stacking technique built into Font Awesome to display small icons inside of a circle. I'd like however to have total control over the size of the circle - more so then the sizing options they have available.
I've built a proof of concept, which works, but the circle doesn't display at the desired dimensions. I have specified for it to be 60x60, however if you inspect the element the container is the correct size but the actual circle icon is inset a bit.
body {
font-size: 12px;
font-family: Courier;
}
.fa-stack.custom {
font-size: 60px;
width: 60px;
height: 60px;
line-height: 60px;
overflow: hidden;
background-color: pink;
}
.fa-stack.custom .circle {
font-size: 60px;
}
.fa-stack.custom .icon {
font-size: 18px;
color: #ff00ff;
}
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet" />
<span class="fa-stack custom">
<i class="circle fa fa-circle fa-stack-2x"></i>
<i class="icon fa fa-times fa-stack-1x fa-inverse"></i>
</span>
https://jsfiddle.net/louiswalch/nxo2s1gt/13/
Any ideas for getting this to work for exact pixel dimensions?