cssplay_basicdd:
<link rel="stylesheet" media="all" type="text/css" href="../css/basic_dd.css" />
<!--[if lte IE 6]>
<link rel="stylesheet" media="all" type="text/css" href="../css/basic_dd_ie.css" />
<![endif]-->
cssplay_inner:
<ul>
[[+wf.wrapper]]
</ul>
cssplay_outer:
<div[[+wf.classes]]>
<ul>
[[+wf.wrapper]]
</ul>
</div>
cssplay_parentRow:
<li><a [[+wf.classes]] href="[[+wf.link]]" title="[[+wf.title]]">[[+wf.linktext]]</a>
<!--[if lte IE 6]>
<a class="sub" href="[[+wf.link]]" title="[[+wf.title]]">[[+wf.linktext]]
<table><tr><td>
<![endif]-->
[[+wf.wrapper]]
<!--[if lte IE 6]>
</td></tr></table>
</a>
<![endif]-->
</li>
cssplay_row:
<li[[+wf.classes]]><a href="[[+wf.link]]" title="[[+wf.title]]">[[+wf.linktext]]</a>[[+wf.wrapper]]</li>
/* common styling */
/* set up the overall width of the menu div, the font and the margins */
.menu {
font-family: helvetica, arial, sans-serif;
width:960px;
margin:0;
position:relative;
z-index:100;
}
/* remove the bullets and set the margin and padding to zero for the unordered list */
.menu ul {
padding:0;
margin:0;
list-style-type: none;
}
/* float the list so that the items are in a line and their position relative so that the drop down list will appear in the right place underneath each list item */
.menu ul li {
float:left;
position:relative;
}
/* style the links to be 104px wide by 30px high with a top and right border 1px solid white. Set the background color and the font size. */
.menu ul li a, .menu ul li a:visited {
display:block;
text-align:center;
text-decoration:none;
width:100px;
height:36px;
color:#f3eee8;
border:0;
background:#491a02;
line-height:36px;
font-size:14px;
font-weight:bold;
}
/* make the dropdown ul invisible */
.menu ul li ul {
display: none;
}
/* specific to non IE browsers */
/* set the background and foreground color of the main menu li on hover */
.menu ul li:hover a {
color:#fff;
background:#5a2b13;
}
/* make the sub menu ul visible and position it beneath the main menu list item */
.menu ul li:hover ul {
display:block;
position:absolute;
top:36px;
left:0;
width:100px;
}
/* style the background and foreground color of the submenu links */
.menu ul li:hover ul li a {
display:block;
background:#491a02;
color:#f3eee8;
}
/* style the background and forground colors of the links on hover */
.menu ul li:hover ul li a:hover {
background:#5a2b13;
color:#fff;
}
[[!Wayfinder? &startId=`0` &level=`3` &parentClass=`hide` &parentRowTpl=`cssplay_parentRow` &outerTpl=`cssplay_outer` &innerTpl=`cssplay_inner` &rowTpl=`cssplay_row` &outerClass=`menu` &cssTpl=`cssplay_basicdd` &excludeDocs=`2`]]
<div class="menu">
<ul>
<li class="first">
<a href="___" title="___">___</a>
</li>
<li class="menu">
<a href="___" title="___">___</a>
</li>
<li class="menu">
<a href="___" title="___">___</a>
</li>
<li class="menu">
<a href="___" title="___">___</a>
</li>
<li class="last">
<a href="___" title="___">___</a>
</li>
</ul>
</div>
You’re doing well with your Revo code, too, so high marks for that. &outerClass=`menu`
.menu ul li {
float:left;
position:relative;
}
<li[[+wf.classes]]><a href="[[+wf.link]]" title="[[+wf.title]]">[[+wf.linktext]]</a>[[+wf.wrapper]]</li>
<li><a href="[[+wf.link]]" title="[[+wf.title]]">[[+wf.linktext]]</a>[[+wf.wrapper]]</li>
)
Hmm, I assumed that the chunks that were given in the example were all complete and didn’t need editing :/
I did indeed link the CSS though... shouldn’t the chunk pull from this bit of CSS for li styling though?:
.menu ul li { float:left; position:relative; }
...and not the .menu bit? In any case, I don’t know all the details of how CSS works. I did manage to fix the problem, I think (well the menu works as it should anyways), by editing the cssplay_row chunk:
<li[[+wf.classes]]><a href="[[+wf.link]]" title="[[+wf.title]]">[[+wf.linktext]]</a>[[+wf.wrapper]]</li>