PDA

View Full Version : مشکل با منو



yasharhi
شنبه 09 آذر 1392, 16:41 عصر
من یک منو درست کردم و یک کلاس هم درست کردم و border براش تعیین کردم و به منو این کلاس رو دادم ولی border نمایش داده نمیشه .

همونطور که میبینید برای محکم کاری ! برای تمام اجزا هم این کلاس رو دادم ولی کار نکرد !


<div class="row margin-0 y-b">
<ul class=" margin-0 y-b">
<li class="y-b">home </li>
<li>about </li>
<li>blog </li>
<li>service </li>
<li>sign up </li>
<li>contact us </li>
<li>sign up </li>
<li>contact us </li>
</ul>
</div>



این css منو




.row ul {
height: 50px;
}
.row ul li {
font-family: Tahoma, Geneva, sans-serif;
font-size: 14px;
line-height: 50px;
text-transform: uppercase;
text-decoration: none;
display: block;
float: left;
height: 50px;
width: 100px;
text-align: center;
margin: 0px;
padding: 0px;

}




این هم کلاس y-b





.y-b {

border-left-width: thin;
border-left-style: solid;
border-left-color: #00FF33;
}

H:Shojaei
شنبه 09 آذر 1392, 17:18 عصر
سلام
اينو امتحان كنيد:

.y-b {

border-left-width:1px thin;
border-left-style:1px solid;
border-left-color:1px solid #00FF33;
}

yasharhi
شنبه 09 آذر 1392, 18:02 عصر
سلام
اينو امتحان كنيد:

.y-b {

border-left-width:1px thin;
border-left-style:1px solid;
border-left-color:1px solid #00FF33;
}


نه بازم کار نکرد

option
شنبه 09 آذر 1392, 18:16 عصر
سلام
فقط کافیه که اینو به آخر .row ul li اضافه کنی

border-left: solid 1px #00FF33;

یا

.row ul li {
font-family: Tahoma, Geneva, sans-serif;
font-size: 14px;
line-height: 50px;
text-transform: uppercase;
text-decoration: none;
display: block;
float: left;
height: 50px;
width: 100px;
text-align: center;
margin: 0px;
padding: 0px;
border-left: solid 1px #00FF33;

}



من یک منو درست کردم و یک کلاس هم درست کردم و border براش تعیین کردم و به منو این کلاس رو دادم ولی border نمایش داده نمیشه .

همونطور که میبینید برای محکم کاری ! برای تمام اجزا هم این کلاس رو دادم ولی کار نکرد !


<div class="row margin-0 y-b">
<ul class=" margin-0 y-b">
<li class="y-b">home </li>
<li>about </li>
<li>blog </li>
<li>service </li>
<li>sign up </li>
<li>contact us </li>
<li>sign up </li>
<li>contact us </li>
</ul>
</div>


این css منو




.row ul {
height: 50px;
}
.row ul li {
font-family: Tahoma, Geneva, sans-serif;
font-size: 14px;
line-height: 50px;
text-transform: uppercase;
text-decoration: none;
display: block;
float: left;
height: 50px;
width: 100px;
text-align: center;
margin: 0px;
padding: 0px;

}


این هم کلاس y-b





.y-b {

border-left-width: thin;
border-left-style: solid;
border-left-color: #00FF33;
}

yasharhi
شنبه 09 آذر 1392, 18:29 عصر
سلام
فقط کافیه که اینو به آخر .row ul li اضافه کنی

border-left: solid 1px #00FF33;

یا

.row ul li {
font-family: Tahoma, Geneva, sans-serif;
font-size: 14px;
line-height: 50px;
text-transform: uppercase;
text-decoration: none;
display: block;
float: left;
height: 50px;
width: 100px;
text-align: center;
margin: 0px;
padding: 0px;
border-left: solid 1px #00FF33;

}

آخه دوست عزیز اینطوری به تمام منو هایی که در سایت هست این border اضافه میشه

option
شنبه 09 آذر 1392, 18:54 عصر
خب برای دادن استایل تکی اینجوری میتونید عمل کنید


<li style="border-left: solid 1px #00FF33;">contact us </li>

yasharhi
شنبه 09 آذر 1392, 19:01 عصر
خب برای دادن استایل تکی اینجوری میتونید عمل کنید


<li style="border-left: solid 1px #00FF33;">contact us </li>

دمت گرم . درست شد