<div id="content">
<div id="rectangle">
<p>Consectetur adipiscing elit. Suspendisse potenti. Maecenas at nulla velit, quis bibendum ligula. Donec neque purus, porttitor et tempor non, molestie nec sem.</p>
</div>
</div>
#content{
margin:0px auto;
height:600px;
width: 600px;
background-color: white;`enter code here`
-moz-box-shadow: inset 0 15px 2px rgba(0,0,0,.07);
-webkit-box-shadow: inset 0 15px 2px rgba(0,0,0,.07);
box-shadow: inset 0 15px 2px rgba(0,0,0,.07);
}
.rectangle {
width: 563px;
height: 165px;
background-color: #e7ebf1;
-moz-box-shadow:
1px 1px 2px rgba(0,0,0,.2) ,
inset 0 0 5px rgba(255,255,255,.6)
-webkit-box-shadow:
1px 1px 2px rgba(0,0,0,.2) ,
inset 0 0 5px rgba(255,255,255,.6) ;
box-shadow:
1px 1px 2px rgba(0,0,0,.2),
inset 0 0 5px rgba(255,255,255,.6)
background-image: -moz-linear-gradient(90deg, rgba(0,0,0,.05) 0%, rgba(255,255,255,.05) 100%);
background-image: -o-linear-gradient(90deg, rgba(0,0,0,.05) 0%, rgba(255,255,255,.05) 100%);
background-image: -webkit-linear-gradient(90deg, rgba(0,0,0,.05) 0%, rgba(255,255,255,.05) 100%);
background-image: linear-gradient(90deg, rgba(0,0,0,.05) 0%, rgba(255,255,255,.05) 100%);
margin: 0 auto;
}
我嘗試在彼此之間創建框之間的間距。
不知怎的,兩者都堅持彼此頂部,我不能設法讓他們之間有間距。 當我添加保證金或填充它不會改變任何東西。divs之間的間距