PDA

View Full Version : ایراد در سی اس اس



myysl97
یک شنبه 08 تیر 1393, 15:31 عصر
سلام دوستان من چند روزه درگیر این کدم ...
نمیدونم کجای کدم اشتباه کردم نمیتونم پس زمینه کلی وب سایت رو با پس زمینه قسمت بدنه وب سایتم عوض کنم
متسفانه برای main هر چی میدم عوض نمیشه....
کد هام رو میذارم اگر دوستان کمک کنن




<div class="head">
</div>
<div class="up-main">
<div class="tarih">
&nbsp;&nbsp;&nbsp;&nbsp; امروز :&nbsp;
</div>
</div>
<div class="main">

<div class="main-r">
<div class="head-main">
<asp:Image ID="Image1" runat="server" ImageUrl="~/img-v/beg3.png" />
فهرست اصلی سایت
</div>
<div class="menu-as">
<div id="navigation">
<ul>
<li><a href="contactus.aspx" style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #c0c0c0">تماس با ما</a></li>
</ul>
</div>
</div>
<div class="head-main">
<asp:Image ID="Image2" runat="server" ImageUrl="~/img-v/beg3.png" />
فرم های الکترونیکی
</div>
<div class="formha">
<div class="form-ax">
</div>
<div class="form-ax">
</div>
<div class="form-ax">
</div>
<div class="form-ax">
</div>
</div>
<div class="head-main">
<asp:Image ID="Image3" runat="server" ImageUrl="~/img-v/beg3.png" />
خلاصه آمار
</div>
<div class="amar"></div>
<div class="head-main">
<asp:Image ID="Image4" runat="server" ImageUrl="~/img-v/beg3.png" />
نظرسنجی
</div>
<div class="nazarsanji">
<br />
</div>


</div>
<div class="main-c">
</div>
<div class="main-l">
<div class="head-main">
<asp:Image ID="Image11" runat="server" ImageUrl="~/img-v/beg3.png" />
تبلیغات
</div>
<div class="ads">
<br />
</div>
<div class="head-main">
<asp:Image ID="Image5" runat="server" ImageUrl="~/img-v/beg3.png" />
زندگی نامه شهدا
</div>
<div class="alaleh">
</div>
<div class="head-main">
<asp:Image ID="Image7" runat="server" ImageUrl="~/img-v/beg3.png" />
عکس روز
</div>
<div class="ax-ruz">
</div>
<div class="head-main">
<asp:Image ID="Image9" runat="server" ImageUrl="~/img-v/beg3.png" />
سایت های برگزیده
</div>
<div class="site-montakhabb">
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
</div>
<div class="head-main">
<asp:Image ID="Image12" runat="server" ImageUrl="~/img-v/beg3.png" />
خبرنامه پیامکی
</div>
<div class="payamek">
</div>
<div class="head-main">
<asp:Image ID="Image10" runat="server" ImageUrl="~/img-v/beg3.png" />
سایت های مرتبط
</div>
<div class="site-mortebaet">
<br />
<br />
</div>

</div>

</div>
<div style="clear: both"></div>
<div class="btnmain">
<div class="tarahi">
&nbsp;&nbsp;&nbsp;</div>
</div>
<div class="footer"></div>






وقسمت سی اس اس




body {
/* background-image: url('img-v/bg.jpg');#4685a6; */


font-family: Tahoma;
font-size: 12px;

}

.head {
width: 1000px;
height: 120px;
margin: auto;
}

.txt {
font-family: Tahoma;
font-size: 12px;
height: 22px;
width: 300px;
border: 1px inset #808080;
background-color: #EFEFEF;
}

.btn {
background-color: #FDD6AC;
border: 1px solid #FCB379;
font-family: Tahoma;
font-size: 11px;
}

.up-main {
height: 29px;
width: 1000px;
margin: auto;
background-image: url('img-v/upmenu.png');
direction: rtl;
text-align: right;
}

.tarih {
width: 500px;
height: 15px;
margin-right: 20px;
margin-top: 5px;
padding-top: 5px;
font-family: Tahoma;
font-size: 12px;
color: white;
}

.main {

width: 993px;
margin: auto;

border-right: 2px solid #e5c362;
border-left: 2px solid #e5c362;
}

.amar {
height: 175px;
}

.nazarsanji {
height: 350px;
direction: rtl;
text-align: right;
color: #8b0000;
line-height: 21px;
}

.payamek {
height: 114px;
text-align: center;
}

.main-r {
width: 185px;
float: right;
margin-right: 10px;
margin-top: 10px;
}

.menu-as {
height: 370px;
direction: rtl;
text-align: right;
}

.formha {
height: 350px;
text-align: center;
}

.form-ax {
height: 75px;
width: 172px;
text-align: center;
margin: auto;
padding-top: 5px;
}

.head-main {
height: 21px;
background-repeat: no-repeat;
direction: rtl;
text-align: right;
background-position-x: right;
border-bottom: 1px solid #7a5a01;
}

.main-c {
width: 520px;
float: right;
margin: 10px;
margin-right: 15px;
text-align: right;
direction: rtl;
border: 1px solid #EFEFEF;
}

.my-slide-n {
width: 500px;
margin: 5px;
height: 300px;
}

.head-last-news {
width: 500px;
margin: 5px;
height: 27px;
color: white;
background-color: #439eb0;
direction: rtl;
text-align: right;
}

.last-news {
width: 500px;
margin: 5px;
height: auto;
background-color: #eaeaea;
}

.main-l {
width: 230px;
float: left;
margin-left: 10px;
margin-top: 10px;
}

.ads {
height: 240px;
text-align: center;
}

.alaleh {
padding-top: 5px;
height: 220px;
text-align: center;
}

.ax-ruz {
height: 165px;
text-align: center;
padding-top: 5px;
}

.site-montakhabb {
height: 360px;
text-align: center;
}

.site-mortebaet {
direction: rtl;
text-align: center;
height: 250px;
}

.btnmain {
height: 41px;
margin: auto;
width: 996px;
background-image: url('img-v/btn-maiun.png');
direction: rtl;
text-align: right;
}

.tarahi {
width: 300px;
margin-right: 150px;
height: 20px;
padding-top: 15px;
color: white;
}

.footer {
width: 1000px;
height: 20px;
margin: auto;
}

.showconetnt {
width: 500px;
text-align: justify;
}
/*Menu*/
#navigation {
font-size: 12px;
font-family: Tahoma;
width: 185px;
}

#navigation ul {
margin: 0px;
padding: 0px;
background-color: #FFFFFF;
}

#navigation li {
list-style: none;
border-top: #c0c0c0 solid;
border-right: #c0c0c0 solid;
border-left: #c0c0c0 solid;
border-width: 1px;
}

#navigation a {
color: #006666;
display: block; /*bad az link be satr bad miravad*/
height: 25px;
line-height: 25px;
text-indent: 10px; /*mizane to rafteghi*/
text-decoration: none;
width: 100%;
}

#navigation a:hover {
color: black;
}

#navigation li:hover {
background-color: #33cccc;
position: relative;
}

parvizwpf
یک شنبه 08 تیر 1393, 16:03 عصر
توی اون یکی پست رو بخونید

mohamad_torabi
یک شنبه 08 تیر 1393, 17:47 عصر
این کد رو قرار بدین

background:url("../folder name/slide_button.png") no-repeat;