我目前有两个 div 包含不同的图像和文本。他们使用相同的 css 样式,.cheese_people
我需要在两个框的中间创建一个边距。我该怎么做?
另外我真的需要两个 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%;
}