現在、異なる画像とテキストを含む 2 つの div があります。.cheese_people
2 つのボックスの中間の間にマージンを作成する必要があるのと同じ CSS スタイルを使用します。どうすればいいですか?
また、これを行うには本当に2つのdivが必要ですか? 私がこのようにした唯一の理由は、それらを同じグリッド線上に置くことです.
<div class=" grid 6 cheese_people">
<img class="people_photo" src="img/cheese_expert.jpg">
<h4>Chief Cheese Taster <br> Dave Le Conk</h4>
<p class="chesse_people">I've always had a passion for cheese - Now I get to taste it everyday!</p>
</div>
<div class=" grid 6 cheese_people">
<img class="people_photo" src="img/cheese_owner.jpg">
<h4>The Big Cheese Owner <br> Sally De Cheese</h4>
<p class="chesse_people">I wanted to create an online store that I'd would trust</p>
</div>
.cheese_people {
font-family: sans-serif;
background-color: #dec38c;
border:solid 3px #6b5221;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
float:left;
width:45%;
}