I want to create a rounded div that has a font awesome i arrow tag centered in it like this:
I tried to wrap the i tag inside a div and center it with margin 0 auto but it does not center it perfectly, how can I do it?
here is my html:
<div class="parent">
<div class="child">
<i class="fas fa-arrow-up"></i>
</div>
</div>
and my css:
.parent {
width: 300px;
background: #f00;
height: 300px;
margin: 0 auto;
border-radius: 50%;
}
.child {
width: 150px;
margin: auto;
height: 100px;
}
and a link to my fiddle: http://jsfiddle.net/philipkovachev9/8kgxL59f/4/