【发布时间】:2018-06-28 06:03:49
【问题描述】:
我正在尝试将 Font Awesome 图标垂直居中对齐到一个小块或一行文本。这是我想要实现的目标的图片:This is the look I'd like to achieve
我正在处理的网页部分在这里:This is the look my code currently produces. Note the unaligned FA icon,具体来说,下面的代码是右侧的(第 2 列):
<div class="col-12 col-md-6 col-lg-5">
<h4 class="text-center ">Honors and Awards</h4>
<i class="fa fa-trophy fa-lg" aria-hidden="true"></i>
<h5 class="text-center"> Boy Scouts of America Eagle Scout Rank</h5>
<h6 class="text-center"> The Highest Rank in Scouting</h6>
<h6 class="text-center"> April 2014 </h6>
</div>
【问题讨论】:
标签: html css twitter-bootstrap font-awesome twitter-bootstrap-4