
نوشته شده توسط
raravaice
برام یه sample site معرفی کن تا ببینم بهت بگم.
من میخوام footer در وسط Page قرار بگیره :
<divid="Header"class="header">
here is header</div>
<divid="Body"class="body">
<divid="Menu"class="menu">
here is Menu and we place menu here</div>
<divid="Main"class="main">
here is Main.here we place main part of the site! here the float is right and it
mean ..</div>
</div>
<divid="Footer"class="footer">
here is footer
</div>
و CSS لینک شده :
body
{
padding: 0px;
margin: 0px;
}
.header
{
background-color: #292929;
color: Red; /*position: absolute; top: 10px; left: 10px;*/
width: 850px;
padding: 10px;
text-align: center;
margin-left: auto;
margin-right: auto;
margin-top: 10px;
}
.body
{
background-color: #cc3300; /*position: absolute; margin: 50px; width: 100px;*/
height: 200px;
}
.menu
{
color: #0099CC;
float: right;
width: 150px;
margin-right: 5px;
}
.main
{
background-color: Blue; /*float: right;*/
width: 350px;
margin-left: 5px;
}
.footer
{
background-color: Orange;
color: Green;
position: absolute;
bottom: 10px;
left: 10px;
width: 850px;
padding: 10px;
text-align: center;
}
همچنین ممنون میشم بگین که نحوه ی تقسیم بندی Main و Menu به این صورت خوبه یا بهتر روش دیگه ای استفاده بشه !