フレックスボックス内のアイテム間に垂直線を追加する必要があります。各項目に境界線を追加しましたが、垂直線は中央にありません。以下のコードを見つけてください。誰かが助けてくれますか?フレックスボックス内のアイテム間に等間隔の垂直線を追加
.details-wrapper {
display: flex;
justify-content: space-between;
align-items: center;
padding-top: 30px;
padding-bottom: 30px;
background-color:pink;
}
.details-wrapper div {
flex-basis: 25%;
text-align: center;
border-right: 1px solid #fff;
}
.details-wrapper span {
display: block;
margin-top: 30px;
margin-bottom: 34px;
font-size: 24px;
color: #000;
}
.details-wrapper p {
font-size: 16px;
color: #000;
}
<div class="details-wrapper">
<div>
<span>Where does it come from</span>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
</div>
<div>
<span>Where does it come from</span>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
</div>
<div>
<span>Where does it come from</span>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
</div>
</div>
'フレックス基準を使用し、次に、行の3つの項目が存在することになる場合:33.33パーセント;'一部左/右 'padding'有します。 –