1
I have some Windows that should display some Font Awesome icons by my css:
.listing-item .listing-meta-cat a
{
font-size:14px;
width:30px;
text-align:center;
margin-right:5px;
border-radius:10%;
display:inline;
padding:10px;
}
<div class="listing-meta-cat">
<a class="bgpurpal-1" href="javascript:void()">
<i class="fa fa-graduation-cap white"></i>
</a>
<a class="bgyallow-2" href="javascript:void()">
<i class="fa fa-child white"></i>
</a>
</div>
The link classes are only about colors. What happens is that the measurements of the div is not getting perfect, it’s like in the image:
I believe you have two options. One of them is to check the css sheet and maybe the icons for editing(from the awesome font). The other option would be to give a
padding-left
andpadding-right
within the tag<a></a>
to give a standardizedwidth
of it. The problem that in the second option you will have to fix for each type of icon (because they havewidth
orpadding
different I believe).– Daniel Nicodemos