私は初心者のウェブデザインの学生です。私は次の画像をコード化しようとしています。 しかし、これは代わりにsee this screenshot of my work浮動小数点の行の下にテキストを配置する方法
私は3つのボックス(それぞれ独自の子DIV)とテキストを含む親divを作成し、それらを浮かべ何が起こっているかです。今、親divの一番下のボックスの下にテキストを残すにはどうすればいいですか?私は絶対的な立場を試みたが、うまくいかなかった。誰か私のためのアイデアはありますか? は、ここに私のHTMLです:
<div>
<div class="box" id="standard">
<i class="fa fa-clock-o" aria-hidden="true"></i>
<p>Standard</p>
</div>
<p>Triggered by a contact's time of enrollment, like joining a smart list or filling out a form.</p>
</div>
<div>
<div class="box">
<i class="fa fa-calendar" aria-hidden="true"></i>
<p>Fixed Date</p>
</div>
<p>Triggered by a calendar date, like a webinar, conference, or holiday.</p>
</div>
<div>
<div class="box">
<i class="fa fa-user" aria-hidden="true"></i>
<p>Property Based</p>
</div>
<p>Triggered by a contact date property, like a trial expiration date or renewal date.</p>
</div>
そして、私のCSS:
.box {
height: 184px;
width: 187px;
border: 1px solid #00a4bd;
moz-border-radius: 4px;
-webkit-border-radius: 4px;
text-align: center;
line-height: 80px;
margin: 0 20px 20px 0;
font-size: 18px;
float: left;
}
#standard {
border: 2px solid #00a4bd;
background-color: #e5f5f8;
}
私が何かアドバイスのためにとても感謝されます!おかげさまで
ようこそ。あなたの質問に[mcve]を入れてください。 – j08691