mohammad kafiyan
چهارشنبه 28 فروردین 1392, 20:33 عصر
سلام به دوستان من یک div-main دارم که داخل اون دوتا div به صورت پشت سرهم (به صورت عمودی قرار دارند)
حالا می خوام div اولی (header) در div-main به اندازه مثلا 20px پایین بیاد ؟؟؟
از چه کدی استفاده کنم
فقط کادر مشکی رنگ div-main که شامل سه قسمت تصویر
کدهاش:
#top_main
{
background: url(image/top_main.png)no-repeat scroll top;
width: 990px;
height: 17px;
}
#middle_main
{
background:url(image/middle_main.png)repeat-y;
width: 990px;
min-height:900px;
}
#bottom_main
{
background: url(image/bottom_main.png)no-repeat scroll bottom;
width: 990px;
height: 17px;
}
کدهای header
#header
{
width: 930px;
height: 150px;
background:url(image/Untitled-4.jpg) no-repeat;
margin:0px auto;
background-position: center center;
}
حالا می خوام div اولی (header) در div-main به اندازه مثلا 20px پایین بیاد ؟؟؟
از چه کدی استفاده کنم
فقط کادر مشکی رنگ div-main که شامل سه قسمت تصویر
کدهاش:
#top_main
{
background: url(image/top_main.png)no-repeat scroll top;
width: 990px;
height: 17px;
}
#middle_main
{
background:url(image/middle_main.png)repeat-y;
width: 990px;
min-height:900px;
}
#bottom_main
{
background: url(image/bottom_main.png)no-repeat scroll bottom;
width: 990px;
height: 17px;
}
کدهای header
#header
{
width: 930px;
height: 150px;
background:url(image/Untitled-4.jpg) no-repeat;
margin:0px auto;
background-position: center center;
}