The classes should be output wherever the placeholder appears
I'm sorry, but it was right in Evo, but not in this Revo I'm working on.
the RowTpl code is the one listed in my 1st post of this thread.
I've tried to put the +classes PL into
- li only : no pb
a only: no classes are outputed
li AND a : classes are outputed into the li only
here's some actual rendered html for the menu:
<ul>
<li class="first lev-1 active current" id="id-2"><a title="A Propos" href="a-propos.html">A propos</a></li>
<li class="lev-1" id="id-7"><a title="Réalisations" href="portfolio/">Réalisations</a></li>
<li class="last lev-1" id="id-4"><a title="Contact" href="contact.html">Contact</a></li>
</ul>
Concerning my question about targeting an element ( the <a> ) with 2 classes from its parent, it's ok, but won't works in IE6 (ok, I'm not focusing on it anymore, but it's still about 6% in France).
Goal was to get a specific bullet for the home link, AND this bullet must be different if we are on Home page OR not (usability, ergonomic thought)
so here's the concerned rules using a double classes targeting. Your example is ok only if
all link have the same
current icon
#menu-top ul li.home] a {
/* standard icon for home page when not on it */
background: url("../images/home2.png") no-repeat scroll left 15px transparent;
padding-left: 20px;
#menu-top ul li.home a:hover, #menu-top li.home.current a {
/* specific icon for home page when on it or at hover */
background: url("../images/home2.png") no-repeat scroll left -19px transparent !important;
padding-left: 20px;
}
[ed. note: elz064 last edited this post 15 years ago.]