Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / CSS / January 2008



Tip: Looking for answers? Try searching our database.

Showing arrows on multi-level menu

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Colin Walls - 27 Jan 2008 12:59 GMT
I am trying to show arrows on a multi-level menu (site is
http://www.sallekiss.org.uk).

Where we have a multi-level item the list structure looks like:

<ul class="menu">
 <li class="parent"><a>...</a></li>
</ul>

when the top level is closed and

<ul class="menu">
 <li class="parent active"><a>...</a>
   <ul>
     <li><a>...</a></li>
   </ul>
 </li>
</ul>

when it is open.

When we have an active, single level menu item we also have

<ul class="menu">
 <li class="active"><a>...</a></li>
</ul>

Now I can use the parent class to put an arrow on without any problem. The
questions are:

1. How do I change the arrow when we have an active parent?
2. How do I avoid putting an arrow on something that is active,
  but not a parent?

I only go to two levels, so a general case solution isn't required.

Signature

Colin Walls

Jonathan N. Little - 27 Jan 2008 15:06 GMT
> I am trying to show arrows on a multi-level menu (site is
> http://www.sallekiss.org.uk).
[quoted text clipped - 31 lines]
>
> I only go to two levels, so a general case solution isn't required.

I used a "has children" class which on my page is "kids". The arrow is a
background image on the A element. If this is what you are looking for
then take a peek at my sites css "mm.css" and the source and borrow what
you need.

Signature

Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.