
29-05-2007, 19:38
|
|
|
|
חבר מתאריך: 13.08.06
הודעות: 61
|
|
|
לא מצליחה לעשות SEPARATOR ב-CSS
שלום,
הנה האתר שאני בונה.
http://www.tanyapreminger.com/work/nurses/home1.html
עשיתי תפריט של CSS עם ג'אווה (מצאתי ושיניתי) -דרך אגב כרגע נראה טוב רק באקספלורר.
עכשיו אני מנסה לעשות הפרדה של קוים לבנים בין הקישורים. ראיתי באתרים אחרים שיש
SEPARATOR או אולי עם BORDER-LEFT?
מה שניסיתי לא יצא לי. אולי יש למישהו טיפ?
הנה הקוד של ה-CSS
/* ######### Style for Menu ######### */
.chromestyle{
width: 100%;
height: 30px;
font-weight: bold;
color: #ffffff;
text-align: right;
}
.chromestyle:after{ /*Add margin between menu and rest of content in Firefox*/
content: ".";
display: block;
height: 100%;
clear: both;
visibility: hidden;
}
.chromestyle ul{
width: 100%;
background-color: #009dda;
padding: 6px 24px;
margin: 0;/* do not touch*/
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
font-weight: bold
text-align: center; /*set value to "left", "center", or "right"*/
height: 30px; /* do not touch*/
}
.chromestyle ul li{
display: inline;
}
.chromestyle ul li a{
color: #ffffff;
padding: 0px 20px;
margin: 0;
text-decoration: none;
}
.chromestyle ul li a:hover{
background-color: #009dda; /*THEME CHANGE HERE*/
font-size: 14px;
}
#active a:link, #active a:visited, #active a:hover
{
color: #ffffff;
text-decoration: underline;
}
/* ######### Style for Drop Down Menu ######### */
.dropmenudiv{
position:absolute;
top: 7em;
left: 0em;
border: 0px; /*THEME CHANGE HERE*/
line-height:18px;
z-index:100;
background-color: #8fc5eb;
visibility: hidden;
text-align: right;
}
.dropmenudiv a{
display: block;
text-indent: 3px;
border-bottom: 0px; /*THEME CHANGE HERE*/
padding: 2px 7px;
text-decoration: none;
font:bold 13px Arial;
color: #ffffff;
}
* html .dropmenudiv a{ /*IE only hack*/
width: 100%;
}
.dropmenudiv a:hover{ /*THEME CHANGE HERE*/
background-color: #8fc5eb;
}
וזה של ה-HTML
<div class="chromestyle" id="chromemenu">
<ul>
<li><a href="../Brain_Damage-Home.html">מי אנחנו</a></li>
<li><a href="#" rel="dropmenu1">פעילויות העמותה</a></li>
<li><a href="../Brain_Damage-Team.html">חינוך</a></li>
<li><a href="#" rel="dropmenu2">פרסים ומלגות</a></li>
<li><a href="../Brain_Damage-Applications.html">חברות בעמותה</a></li>
<li><a href="#" rel="dropmenu3">פרסומים</a></li>
<li><a href="../Brain_Damage-Download.html">גלריית תמונות</a></li>
</ul>
</div>
<!--1nd drop down menu -->
<div id="dropmenu1" class="dropmenudiv" style="width: 135px;">
<a href="../Brain_Damage-Vision1.html">ימי עיון וכנסים</a>
<a href="../Brain_Damage-Vision2.html">בחירות לועד העמותה</a>
</div>
<!--2nd drop down menu -->
<div id="dropmenu2" class="dropmenudiv" style="width: 155px;">
<a href="../Brain_Damage-Vision1.html">קריאה להגשת מועמדות</a>
<a href="../Brain_Damage-Vision2.html">מקבלי פרסי המצויינות</a>
</div>
<!--3nd drop down menu -->
<div id="dropmenu3" class="dropmenudiv" style="width: 100px;">
<a href="../Brain_Damage-Vision1.html">נייר עמדה</a>
<a href="../Brain_Damage-Vision2.html">כימותרפייה</a>
</div>
<script type="text/javascript">
cssdropdown.startchrome("chromemenu")
</script>
תודה רבה!
|