【发布时间】:2020-08-27 21:04:51
【问题描述】:
我想将 Font Awesome 图标的高度和宽度设置为其父容器的完整宽度和高度。
CSS
.icon-container {
width:30px;
height:30px;
}
.fa-facebook-square {
//what should be here
//font-size is not working properly in this scenario
}
HTML
<div class="icon-container">
<i class="fab fa-facebook-square"></i>
</div>
【问题讨论】:
标签: css height width font-awesome