我试图让我的主页按钮在div
内的标题,但它正在对齐div
/标题。字体真棒图标对齐
我有这样的代码:
.home-button {
background: #333;
width: 59px;
height: 60px;
float: right;
line-height: 180px;
text-align: center;
vertical-align: bottom;
}
div.home-button i.fa {
display: inline-block;
}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.2/css/font-awesome.min.css">
<div class="home-button">
<i class="fa fa-home" aria-hidden="true"></i>
</div>
,但它与div
下面的图标显示...
有什么建议?
你可以让你的错误jsFiddle,所以我们可以看到它吗? –
请提供小提琴或至少一个截图 –