【发布时间】:2018-02-16 08:34:01
【问题描述】:
我试图在同一行显示 h4 和段落,但它不起作用。我试图让它们向左浮动,但没有任何改变
.offer {
margin-left: 12%;
}
.offer h4 {
background-color: #f25c25;
display: table-cell;
height: 120px;
width: 120px;
text-align: center;
vertical-align: middle;
border-radius: 50%;
color: #fff;
transform: rotate(7deg);
}
<div class="offer">
<div class="row">
<h4>Offer<br/> Expires<br/> Oct. 31,<br/> 2015!</h4>
</div>
<p class="paragraph">Know someone who’s fed up with soaring bank fees and declining customer service? Celebrate your credit union and its value. Each new member strengthens the credit union and lets us return earnings to you with better rates and higher dividends along
with stellar services. Plus, when you refer a new member, you each get $20.*</p>
</div>
</div>
【问题讨论】:
-
您的标记无效,您是否遗漏了代码中的复制粘贴内容?