내 사이트에서 크기를 변경하지 않으려는 고정 너비 중앙 래퍼가 있지만 사용자 화면의 크기에 따라 여백을 조정하려고합니다. 래퍼 - 아우터라고하는 한 div의 모든 것을 래핑 한 다음 여백으로 중앙에 배치합니다. 0 자동이지만 작동하지 않습니다.CSS로 내 사이트에서 유체 여백을 얻으려면 어떻게해야합니까?
사이트 : http://antonpug.com/mainepark/
CSS :
body {
font-family: "Nobile", sans-serif;
font-size:0.75em;
text-align:center;
min-width:1550px;
}
img#bg {
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
z-index:-1;
}
h3 {
font-size:1.25em;
}
header h1, header h2 {
font-family: "Ubuntu", sans-serif;
}
header h1 {
font-size:3em;
margin:25px 0 0 0;
}
header h2 {
font-size:2em;
margin:0 0 25px 0;
}
#wrapper-inner {
margin:25px 100px 25px 100px;
padding:15px 0 15px 0;
background-color:rgba(255,255,255,0.75);
moz-border-radius: 10px;
webkit-border-radius: 10px;
border-radius: 10px;
}
#wrapper-outer {
width:1500px; -- that didn't work either!!!
margin: 0px auto;
}
#feature {
display:inline-block;
width:80%;
margin:15px;
}
.column {
display: inline-block;
vertical-align:top;
width:600px;
margin:15px;
}
#col-1 {
text-align:right;
}
#col-2 {
text-align:left;
}
.section {
margin:0 0 25px 0;
height:450px;
}
footer {
color:#909090;
}
footer a {
margin: 0 0 25px 0;
text-decoration:none;
color:#909090;
}
너비가 100 % 인 본체를 설정합니다. –