fafa_na
چهارشنبه 01 آذر 1391, 07:53 صبح
سلام من میخوام اینا زیر هم وسط صفحه قرار بگیرن؟عکس اول وسط قرار میگیره ولی دومی که سه قسمت هست زیر عکس اولی قرار نمیگیره.ممنون میشم راهنمای بفرمایید
<body id="page_bg">
<div id="wrapper">
<div id="header"></div>
<div class="clr"></div>
<div id="bottomright"></div><div id="bottom"></div> <div id="bottomleft"></div>
<div class="clr"></div>
</div>
</body>
و کد cssآن
#page_bg {
background-color:#FFFFFF;
padding-bottom:10px;
padding-top:1px;
}
#wrapper {
margin:0 auto;
}
#header {
position:relative;
height:100px;
width:963px;
margin:0 auto;
background:#FFFFFF url(../images/header.jpg) no-repeat top;
}
#bottomright {
height:33px;
float:right;
width:14px;
margin:0 auto;
background:#FFFFFF url(../images/bottom_r.jpg) no-repeat right;
}
#bottom {
height:33px;
float:right;
width:900px;
margin:0 auto;
background:#FFFFFF url(../images/bottom_bg.jpg);
}
#bottomleft {
height:33px;
float:right;
width:13px;
margin:0 auto;
background:#FFFFFF url(../images/bottom_l.jpg) no-repeat left;
}
.clr {
clear: both;
font-size:0;
}
ممنون
<body id="page_bg">
<div id="wrapper">
<div id="header"></div>
<div class="clr"></div>
<div id="bottomright"></div><div id="bottom"></div> <div id="bottomleft"></div>
<div class="clr"></div>
</div>
</body>
و کد cssآن
#page_bg {
background-color:#FFFFFF;
padding-bottom:10px;
padding-top:1px;
}
#wrapper {
margin:0 auto;
}
#header {
position:relative;
height:100px;
width:963px;
margin:0 auto;
background:#FFFFFF url(../images/header.jpg) no-repeat top;
}
#bottomright {
height:33px;
float:right;
width:14px;
margin:0 auto;
background:#FFFFFF url(../images/bottom_r.jpg) no-repeat right;
}
#bottom {
height:33px;
float:right;
width:900px;
margin:0 auto;
background:#FFFFFF url(../images/bottom_bg.jpg);
}
#bottomleft {
height:33px;
float:right;
width:13px;
margin:0 auto;
background:#FFFFFF url(../images/bottom_l.jpg) no-repeat left;
}
.clr {
clear: both;
font-size:0;
}
ممنون