<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
    xmlns:admin="http://webns.net/mvcb/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:content="http://purl.org/rss/1.0/modules/content/">

    <channel>

    <title>A List Apart: Comments on: Suckerfish Dropdowns</title>
    <link>{url_title_path=articles/}</link>
    <description></description>
    <dc:language>en</dc:language>
    <dc:rights>Copyright 2012</dc:rights>
    <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    <admin:generatorAgent rdf:resource="http://expressionengine.com/" />




    <item>
      <title>Posted by: tim</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/#1</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#1</guid>         
	  
      <description><![CDATA[nice.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Michael Ward</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/#2</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#2</guid>         
	  
      <description><![CDATA[A nice example of drop down menus - probably the most semantically correct bug free version yet. But it still has it's bugs...

Ah, for a world where we didn't have to work around the bugs of useless browsers!

Might just consider this for one of my future projects - and it's certainly better than any of the javascript/dhtml versions.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Seb Duggan</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/#3</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#3</guid>         
	  
      <description><![CDATA[...works fine. At least, it does in version 1.1 (comes with OS X 10.3). I agree that it's broken in version 1.0.

The good news is that this means Apple are addressing all these incompatibilities that are being reported...]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Jim S.</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/#4</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#4</guid>         
	  
      <description><![CDATA[I still have 10.2.8 on my work system and as such Safari 1.0 and the drop down menus appear in the upper left hand corner of the screen. On my other system I upgraded to Panther and it has a newer version of Safari which works perfectly.

I wonder if we need to keep an older version of Safari for testing purposes as some people may not upgrade immediately? The more the merrier as far as browsers is great but just makes our jobs as designers a little tougher.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Andy A.</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/#5</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#5</guid>         
	  
      <description><![CDATA[As we learned in the previous issue, display: none effectively hides the content from the screen readers. So is this TRULY accessible or are the screen readers only going to get the top level items and not the secondary items?]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Blakems</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/#6</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#6</guid>         
	  
      <description><![CDATA[Finally a dropdown that looks great and works great. Good article on the technique. 
Is there any way to go and create decendent lists from the child list?]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Stephen Sample</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/#7</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#7</guid>         
	  
      <description><![CDATA[Darn! Why wasn't this published a month ago?

I ended up coming up with a similar method for a redesign project at work, though I used mouseover methods on the URLs rather than DOM coding. This is cleaner, though.

Hmm. May be time for me to recode. ;-)

If IE/Win is your only concern (and not Opera or IE5/Mac, say), and you aren't a Javascript language purist, you can do a slightly simpler script with conditional comments and DHTML behaviors. But of course, that doesn't get you compatibility with as many browsers.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Dan Webb</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/#8</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#8</guid>         
	  
      <description><![CDATA[As Blakems just mentioned above we are working on getting further nested levels in the dropdowns now and have gone most of the way to making this work.

The javascript patch for IE is simple enough, it just needs to recurse through any child nodes to attach the behaviour.  However, the CSS is another thing...

We'll keep you posted.  Any ideas greatly appriecated.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Stephen Sample</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/#9</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#9</guid>         
	  
      <description><![CDATA[Andy, as I understand it (and I don't have much experience with screen readers, so I may be wrong here), the submenu items probably won't be accessible as-is.

If any of the screen readers support Javascript, you could also add an onfocus handler to the script code, which would allow the menus to expand on tab selection as well. The HI of that is a little odd, but it seems possible. Of course, I don't know that any screen readers would support this in any case. Joe?

But at least on the sites I've worked on, dropdown menus are frills. They save you a step in your navigation, but if your top-level categories are intelligently designed, that's all they get you--the top-level category you need is hopefully obvious, and when you follow the top-level link, the subnavigation will probably appear early on the index page anyway.

So I don't know. I'm something of an accessibility (and standards) advocate, but I'm also a pragmatist. And I'd rather have pretty-good accessibility than none, particularly if the differential is small, and perfection is unattainable.

Of course, since I'm arguing that dropdowns are optional, it might be more equitable to have *no-one* get to have dropdowns, since after all, they aren't really necessary.

I guess my question becomes "is the utility of dropdown menus for your audience such that it's acceptable to offer them to only part of that audience?"   And I can't answer that for you. ...It might be the client's call in a lot of cases, anyway.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Dan Webb</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/#10</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#10</guid>         
	  
      <description><![CDATA[Actually, We experimented using onfocus and onblur to enable mouseless use but I found this was not going to work easily as you cannot attach onfocus and onblur methods to list elements.

But yes, as you said above Stephen, the objective was to create a simple but effective solution to the problem with the minimum amount of code.  

I also have always used dropdowns as an optional quick route in to deeper content that is always backed up by traditional navigation and this was designed to do that at the minimum of disruption and extra page weight.

In my opinion, adding a few extra CSS rules and a few lines of JavaScript does mean that giving an optional extra navigation feature to users that can (and want) to use it comes at a much more acceptable cost.

And yes, clients love this kind of thing..what can you do?]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Justin Cone</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P10/#11</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#11</guid>         
	  
      <description><![CDATA[I just tested the bare-bones version in JAWS 4.5, and it worked beautifully. JAWS read the menus as normal lists and sublists. The links were also available via the List Links command (Insert + F7), commonly used by users to cut to the chase.

I see no problems with this drop-down menu approach and JAWS 4.5.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Marek Moehling</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P10/#12</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#12</guid>         
	  
      <description><![CDATA[The fallback option for non-css browsers is clear: plain HTML.

What about IE with JS deactivated?

That's 13-15% of all users, a group too large to get served plain HTML.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Patrick Griffiths</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P10/#13</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#13</guid>         
	  
      <description><![CDATA[Making the dropdown titles link to a certain section will mean those users won't get the full multi-level functionality of the dropdown menus but they will have single-level navigational menu.

If they are used as an extra navigational tool (as discussed), they can simply be seen as a bonus to those with scripting capabilities rather than a detriment to those without.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: David Ondrik</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P10/#14</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#14</guid>         
	  
      <description><![CDATA[When I went to the pretty example, with the OSX like drop downs with the latest IE6 on XP, the menus "flash" as I mouse between options. What happens is that the background (the light gray lines) disapears and then reloads. It's really annoying. I checked in Opera and it was (predictably) smooth, so is there any idea why this is happening for IE6?]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Jon B</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P10/#15</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#15</guid>         
	  
      <description><![CDATA[I have seen this display bug a lot in old versions of mozilla and netscape 7, but never in IE although I have seen many others.

In netscape/moz the problem was always to do with using 'visibility:hidden' or 'display:none' to hide menus with anchor tags. The solution was  to position the menu 'off-stage' when in it's off state - simply done by changing the positioning value to something like 'top:-100px'. In this way you never need to change the visibility or display states so it works around the bug.

I have IE6 on XP and I see no problem whatsoever by the way, but if you think it is a problem then try my suggestion as a bug fix.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Julian Rickards</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P10/#16</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#16</guid>         
	  
      <description><![CDATA[I don't see anything happening in Opera 7.21 but in Moz1.5 I do (Win2k).]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Doug Baker</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P10/#17</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#17</guid>         
	  
      <description><![CDATA[Thanks for a clearly written article with clean, compact standards-compliant code. Very well done.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: John Colby</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P10/#18</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#18</guid>         
	  
      <description><![CDATA[Dan

Many congratulations on producing this and circumventing some of the bugs in browsers. I'm going to test it on JAWS next week when I can (Thursday or Friday) so that we can prove its accessibility with users who need this technology.

Must remember to take biscuits for his guide dog.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Aleksandar Vaci&amp;amp;amp;#263;</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P10/#19</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#19</guid>         
	  
      <description><![CDATA[Dan, Patrick, congratulations on the good work.

I'm working on the same thing, and have got pretty far. You can check it out at -

http://www.aplus.co.yu/Sparks/ADxMenu/

 - it might give you some ideas while you work on nested levels code.

At first, I was thinking on doing similar to what you did, using CSS at fullest and then compensating for IE's lack of :hover support.

I gave that up because of real world usability problems (I'm developing the menu and use it at the same time at the client web site).

I reverted to larger Javascript use to be able to accomodate problems like:

- large menu list goes off the visible screen area
- icon support (item icon and submenu arrow)
- problems with menu being used in the pos:relative and float:left or right layouts, when in IE you have all kinds of overlapping.
- easy switch between vertical and horizontal use

Part of these problems and how I solved them can be seen in the three posts I have at the address above. I plan to add another post with some new tweaks I dealt with, this weekend.

Also, as the menu is used on the bookmaker's web wite with lots of forms, I added the code that deals with windowed controls punching through the menu layers.

Feel free to use any of the code in your future work (which I assume is GPL or CC based), as I will certainly review my code based on what you two published here and possibly simplify it.
]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Patrick Griffiths</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P20/#20</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#20</guid>         
	  
      <description><![CDATA[Some of the problems you mention could actually be solved with CSS:
icon support by using backgound images,
IE problem with position and float with the the li &gt; ul bit mentioned in the article,
horizontal display using position or display properties.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Elmo</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P20/#21</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#21</guid>         
	  
      <description><![CDATA[No workie in Opera.  Elmo sad :(]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Patrick Griffiths</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P20/#22</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#22</guid>         
	  
      <description><![CDATA[I tested it in Opera and it worked fine. It was the latest version (7.2 I think). Maybe it messes up in earlier versions.

Is it the examples that don't work? What happens?]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: LazyJim</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P20/#23</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#23</guid>         
	  
      <description><![CDATA[I havn't tested it but if "display: none;" causes the content to be hidden from some text-readers, maybe a "overflow: hidden;" and "clip: rect(0,0,0,0);" could be used to hide the sub-menus, and then set "overflow: visible;" to show it for the hover state.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Patrick Griffiths</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P20/#24</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#24</guid>         
	  
      <description><![CDATA[LazyJim

I played around with overflow and clip and came up with

http://www.htmldog.com/articles/suckerfish/bones/bones2.html

which does the overflow thing, but sets height to zero rather than using clip.

It seems to work in IE 6 Win, Mozilla 1.5 and Opera 7.2.

I would be really interested to find out what the results are of this overflow method compared to the display method in screen readers, which I unfortunately don't have access to right now.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Jean&#45;François Bastien</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P20/#25</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#25</guid>         
	  
      <description><![CDATA[As previously stated, it's not working in Opera 7.20. Javascript is enabled, there are no javascript errors, I'm on the normal page's stylesheet.

Version 7.20  
Build  3144  
Platform Win32  
System Windows XP]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Elmo</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P20/#26</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#26</guid>         
	  
      <description><![CDATA[Same here, Opera 7.20, xp, build 3144, javascript enabled, still doesn't work.  Elmo still sad :(]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Michael Czepiel</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P20/#27</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#27</guid>         
	  
      <description><![CDATA[First of all thank you very much for this solution. Unfortunately, I'm still at that stage were I'm not sure if it's me or the browser when it comes to quirks.

I'm scripting my student government website and have been waiting to ditch the milonic menu system &#40;an abysmal piece of dhtml hackery&#41;. Anyway, it seems to be working fine in Moz 1.5, Firebird .7 perfectly.

I've hit a minor snag in safari 1.1 where leaving the menu doesn't hide the dropped menus. But I'll chalk that up to safari seeing as it's lagging simply refreshing simply color change hover events in the menu.

Moz 1.6a works fine for the most part but only the first few options within the dropped menus are selectable, mousing further down the list causes it to hide as if you intended to leave the menu. Again I'm chalking this one up to the browser and the alpha status.

As far as IE 6 it begins by not showing the drop downs If I use the selector 

#nav li ul &#123; /* for second-level lists */ or
ul#nav li ul &#123; /* second-level lists */

I can't afford to simply use li ul as I do have other  sub lists and I figured this was the easiest way to get around applying style to other innocent elements.

Additionally, IE seems to be adding a margin or a border to each li item in the sub list if I do use the general li ul selector where it will work. 

I'm really desperate for some help as sadly I've had to do this site form scratch by myself with some help from one of my friends back home, troubleshooting these things is becoming tedious (not that you're strangers to that). If anybody has any suggestions for this scenario I'd love to hear them. Additionally, if you happen to notice any other problems that'd be cool to.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: David House</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P20/#28</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#28</guid>         
	  
      <description><![CDATA[Isn't there a much easier way of doing this?

ul li a &#123;
  display: block;
  width: 100%&#125;
ul li a:hover ul &#123;
  display: block&#125;

Works in my experience.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Patrick Griffiths</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P20/#29</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#29</guid>         
	  
      <description><![CDATA['Fraid not.

You can't nest a list within an anchor element.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Louis St&#45;Amour</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P30/#30</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#30</guid>         
	  
      <description><![CDATA[Great technique. Just what I was looking for. As for the Opera comments, I'm using the still unoffical build 3221 (version 7.22 on WinXP) and it works fine...]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Julian Rickards</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P30/#31</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#31</guid>         
	  
      <description><![CDATA[It didn't work on Opera 7.20 at work but on 7.21 at home (haven't upgraded my copy at work yet). Maybe a bug in 7.20.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Aleksandar Vacic</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P30/#32</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#32</guid>         
	  
      <description><![CDATA[&gt; Some of the problems you mention could 
&gt; actually be solved with CSS...

I do use CSS as much as possible - DOM is used purely to position elements where needed.
I don't see how to control whether is menu going off the visible screen area, using CSS. You need to know how large your menu is, what is available client width etc.
As for multiple levels, I always wanted as simple code as possible, but as soon as I got into advanced features, I inevitably enter the realm of heavy DOM use.

If one have multiple nested lists, using

li:hover ul &#123; display: block; &#125;

will show all of them, not just first sub-level. You can't use 

li:hover &gt; ul &#123; display: block; &#125;

either, because UL is not the first child (it's plain text node or A element).

&gt; IE problem with position and float with the 
&gt; the li &gt; ul bit mentioned in the article

I'm not sure what you mean?
I'm speaking about the problem explained here:
http://www.aplus.co.yu/Techs/24/ - not sure whether li &gt; ul can help to overcome that problem...

I have finished, clean script that solves all the problems (except accessibility :( ) and I will publish it on my web site, but I'm not as nearly satisfied as I want to be. It requires each list item to be A element.
I find that too restrictive, so I'm working on revised code, partially using the code you published here.
]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Patrick Griffiths</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P30/#33</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#33</guid>         
	  
      <description><![CDATA[I agree that there is a disadvantage of the Suckerfish method in that it can not tell if a sub-menu goes off screen.

I'm not a big fan of multi-level dropdowns, but it is certainly possible with CSS and Dan and myself intend to tackle it in the near future. It would involve something like displaying the next level (li ul) lists on hover, but explicitly not displaying third level (li ul ul) lists.

For example, something like:

li:hover ul &#123;display: block&#125;
li:hover ul ul &#123;display: none&#125;


On your other note, the li&gt;ul bit in the article works because IE has a philosophy that children shouldn't be seen or heard. Everything within the li&gt;ul selector is ignored by IE Win.

So, the top and left properties are set initially to fix the IE float / position problem and then are reset with the li&gt;ul selector.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Toni</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P30/#34</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#34</guid>         
	  
      <description><![CDATA[I am sorry for not having read the entire discussion, but here's my bit I developed yesterday without even knowing anyone has been working on it...

Unfortunately... no way to know weather we are offscreen...

The multi-nested dropdown UL that works in Moz, Opera and ** (thou shalt not swear). Unfortunately I have to use some browser sniffing for Opera, as it has a rather nasty bug with no workaround...*(It's stupid, but if you nest an UL inside LI and then set CSS so that UL tries to align with &#123;top: 0&#125; of the parrent, opera will align UL with top of parent's parent - not LI's, but UL's... Really stupid.)

Also, I have some freakish fancy things done with borders, as it seems, that &#123;border: 1px&#125; confuses the aligns...

Other than that I use **'s native &lt;!--[if gte IE 5]&gt; to make sure IE opens ULs and paints LIs as needed.

Here's the URL:

Left aligned
http://pig.merjasec.com/toni/css/left

Right aligned
http://pig.merjasec.com/toni/css/riht

If anyone comes up with an idea how to detect weather we're offscreen without JS, he deservs a nobel price.

Take care!]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: David Barrett</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P30/#35</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#35</guid>         
	  
      <description><![CDATA[http://www.brainjar.com/dhtml/menubar/demo2.html seems to do it. Check out the upper-right dropdown, nested from "Button 1".]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Aleksandar Vacic</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P30/#36</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#36</guid>         
	  
      <description><![CDATA[No :)

Mike is using DOM scripting to determine whether menu is off-screen.

There is no way to do it, since CSS is not build to worry about UA size (since for some UAs this is not applicable).
]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: eConstructs</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P30/#37</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#37</guid>         
	  
      <description><![CDATA[While this method works very well for some browsers, it does not for Netscape 4.  It seems that more than a few of the "CSS methods" do not work for Netscape 4.  Is this an issue you will address?]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Toni</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P30/#38</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#38</guid>         
	  
      <description><![CDATA[As netscape4 is not CSS2 compatible, there is no way this would ever work.
I am (pesonally) focusing on 2 types of browsers: CSS2 compliant and non-compliant, of which I assume, that the non-compliant one will ignore all CSS.

There is simply too much legacy browsers to keep eye on them, while trying to make mainstream ones work properly. 

Here's a bit of a rant to this effect:
I assume, that anyone using an old web browser has a reason to do so. If the reason is knowledge:
&lt;ul&gt;
&lt;li&gt;I have a dog slow machine&lt;/li&gt;
&lt;li&gt;I have only alpha numeric screen&lt;/li&gt;
&lt;li&gt;My IT manager is Hitler, he wont let me install anything&lt;/li&gt;
&lt;li&gt;I just love this ** 2.1 that came with ******* 95&lt;/li&gt;
&lt;/ul&gt;
I guess they know what they are doing and can turn the broken CSS support off if they want to browse the net.

On the other hand, if the user is plain dumb, there is no help. If he does not know what year this is, or he can not find his new browser (even though he has been on the net long enough to harbour one of those old browsers) - I have no sympathy for him. Let him think my design sucks, he is of no consequence to anything (ie - can not harm me).

Sorry about this rant, but I had to do it...

Bye!
]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Toni</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P30/#39</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#39</guid>         
	  
      <description><![CDATA[As netscape4 is not CSS2 compatible, there is no way this would ever work.
I am (pesonally) focusing on 2 types of browsers: CSS2 compliant and non-compliant, of which I assume, that the non-compliant one will ignore all CSS.

There is simply too much legacy browsers to keep eye on them, while trying to make mainstream ones work properly. 

Here's a bit of a rant to this effect:
I assume, that anyone using an old web browser has a reason to do so. If the reason is knowledge:
&lt;ul&gt;
&lt;li&gt;I have a dog slow machine&lt;/li&gt;
&lt;li&gt;I have only alpha numeric screen&lt;/li&gt;
&lt;li&gt;My IT manager is Hitler, he wont let me install anything&lt;/li&gt;
&lt;li&gt;I just love this ** 2.1 that came with ******* 95&lt;/li&gt;
&lt;/ul&gt;
I guess they know what they are doing and can turn the broken CSS support off if they want to browse the net.

On the other hand, if the user is plain dumb, there is no help. If he does not know what year this is, or he can not find his new browser (even though he has been on the net long enough to harbour one of those old browsers) - I have no sympathy for him. Let him think my design sucks, he is of no consequence to anything (ie - can not harm me).

Sorry about this rant, but I had to do it...

Bye!
]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Eirik K</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P40/#40</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#40</guid>         
	  
      <description><![CDATA[Oh, the dream of a lightweight, accessible, standards-compliant, cross-browser-compatible method!

It doesn't work in Opera 7.20 !

Dream on...]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: mike</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P40/#41</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#41</guid>         
	  
      <description><![CDATA[Nice method but it doesn't seem to work in Netscape 6.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: mike</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P40/#42</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#42</guid>         
	  
      <description><![CDATA[Doesn't the use of CSS and JavaScript mean that for 95% of people this is still a DHTML method?]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Patrick Griffiths</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P40/#43</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#43</guid>         
	  
      <description><![CDATA[Netscape 4:
No, the dropdowns don't work in Netscape 4. Because the HTML is structured however, if you import the CSS with an @import at-rule, all of the CSS will be hidden from NN4.x and fully functional HTML will remain.
Personally, I don't believe anything should be compromised to accommodate NN4 any more. The number of users are tiny and decreasing and the disadvantages of looking after the browser (hacks, heavier pages and the resulting decrease in usability for the majority, alternate versions, resulting problems for mobile interfaces etc.) far outweigh the advantages (erm... NN4 users). And as I said, if things are done right, anything relying on CSS should degrade nicely, retaining completely functional pages.


Opera:
Apparently, from what people have said here in the discussions, the dropdowns don't work in Opera 7.20, but it's all hunky dorey in 7.21.
I seem to remember trying this out in Opera some time ago (can't remember what version - probably 7.something) and it worked when the IE-fix JavaScript wasn't there.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Dan Webb</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P40/#44</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#44</guid>         
	  
      <description><![CDATA[Obviously, we want this method to work on as many browsers as possible but the point of our method was really that it's extremely compact and that the markup and execution of the menus mean that they degrade gracefully on most browsers (Currently, the only ones that we've encountered that doesnt degrade well are some versions of Safari - which we are looking at).  

For instance, on the versions of Opera that it doesnt work on you still can click on the top level menu items and navigate the site.  This to me is acceptible behaviour as the user can still use the site, just not with the quick way in that dropdowns give you.

While we are working on making it work on as many browsers as possible I don't think it's wise to bloat it out too much and lose its simplicity and compactness.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: michael</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P40/#45</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#45</guid>         
	  
      <description><![CDATA[For a somewhat lengthy, and depreciated explanation of why Opera 7.20 may be failing, see here:

http://www.treetrybe.com/imm/archives/2003/09/#m00000390

I suggest you check your build.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: michael</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P40/#46</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#46</guid>         
	  
      <description><![CDATA[Ignore that previous post. I hadn't seen the posts that said OP7.20 build 3144 was experiencing the problem (and it is). That link won't help.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Olga</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P40/#47</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#47</guid>         
	  
      <description><![CDATA[So simple and so beautiful! Just great!! ;-)]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Aleksandar Vacic</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P40/#48</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#48</guid>         
	  
      <description><![CDATA[&gt; Left aligned
&gt; http://pig.merjasec.com/toni/css/left

This seems to work fine. I checked in Opera 7, Firebird .7 and IE 5 and 6 (on Win).

In IE4 is not working, meaning that it should gracefully downgrade, which is not. 

In O6 is displaying just the top level, which I gather should be just as fine if each top-level link contains the links to nested items.

Ideal menu script would be working correctly in:
- IE5+ (since it is holding overwhelming majority of users)
- any Gecko or KHTML based browser
- Opera 7

For anything else, it should just display the plain old HTML list.

As for me, this checklist should be working for any styling at all, which is "If you don't have the latest, your problem" approach.
]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Toni</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P40/#49</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#49</guid>         
	  
      <description><![CDATA[Yes, I agree. I had to resort to JS to compensate for 2 of the major blunders of **6 browser:

1.
It does not handle anything but a: hover, so li:hover only works in Gecko.type (G.type) and Opera browsers.

2.
**6 does not understand the &gt; sign for child UL, so a JS method has to be used to show the hidden UL.

Both errors are there because of **'s lack of support for standards.

And in my case I sniff Opera up to compensate for Opera's bug in formating 'top' to parent's parent.

So yes.. it's kinda DHTML, but then againt... it isn't. It's like DCSS :)]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: john</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P50/#50</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#50</guid>         
	  
      <description><![CDATA[On my version of IE6 Win2K the load time after mouse movement is way to slow to be usable.

There is a definite pause of a second between when I stop the mouse and when the background loads.  If I'm just scrolling up and down the menu I never see the background.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Derek Pennycuff</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P50/#51</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#51</guid>         
	  
      <description><![CDATA[The "flashing" of the menues was addressed in a previous ALA article.  Forgive me for not linking, but it was quite recent, since the relaunch.  It can be fixed by going Internet Options and having the setting for "Check for newer versions of stored pages" as anything but "every visit to the page".  This allows the background to smoothly pull from the cache and stops the flashing of the background.

I've currently got Opera 7.0 and the menu does not work.  They pop up, but without a background image, and when I mouse off of them the menues do not fade gracefully.  The leave bits of themselves lying around.  I'd be willing to bet it would work fine if the IE javascript work around was removed.  Opera's pickiness over javascript is the main reason it isn't my default browser.  I'm downloading 7.21 now...

and now Opera crashes as soon as I try to run it so I can see if the upgrade made a difference as far as this code goes.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Derek Pennycuff</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P50/#52</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#52</guid>         
	  
      <description><![CDATA[After uninstalling and reinstalling Opera, the program itself is working once again, and the menues work just fine.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Bieler Batiste</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P50/#53</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#53</guid>         
	  
      <description><![CDATA[Let's consider my solution ... 

http://www.magnin-sante.ch/journal/html/menu3/menuhorizontal.htm

It's very similar than the Suckerfish Dropdowns.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Jon</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P50/#54</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#54</guid>         
	  
      <description><![CDATA[Doesnt drop down with Opera 6.02 OSX...]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Patrick Madden</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P50/#55</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#55</guid>         
	  
      <description><![CDATA[I'm glad for the elegant solution to IE's problems displaying the li:hover CSS. Thanks.

But I don't really understand Javascript, and I'd really like to use this sort of system, but with the current page's subnavigation expanded by default. I'd like a sidebar navigation, where the subnavigation for the page you're on begins expanded, and other pages expand on rollover (pushing downward within the same column).

The page I'm working on does that in Mozilla/Opera/Safari (using the CSS method), but I can't figure out how to combine what I'm doing (inspired/borrowed from http://www.kalsey.com/tools/csstabs/) with the Suckerfish methos so it all works in IE (&$*%).

My testing server is at http://ellis-unix.cas.ohiou.edu/. Has anybody done this successfully? Or is there a simple change to the javascript that would let me recurse through my subnavigation as I've got it? Thanks.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Matt Fletcher</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P50/#56</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#56</guid>         
	  
      <description><![CDATA[I've been looking for a while for sometng that does just this (ul/li into a nice nav menu) for my church website. Then ALA pulls one out of the bag! Excellent.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Aleksandar Vacic</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P50/#57</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#57</guid>         
	  
      <description><![CDATA[&gt; On your other note, the li&gt;ul bit in the
&gt; article works because IE has a philosophy that
&gt; children shouldn't be seen or heard. 
&gt; Everything within the li&gt;ul selector is 
&gt; ignored by IE Win

I was puzzled by your response, and couldn't help thinking that I'm misunderstood.

So, I've taken the pretty example from the article, and enclosed all of the content below the menu into 

&lt;div style="position:relative"&gt;&lt;/div&gt;

Take a look: http://www.aplus.co.yu/suckerfish/index.html

You'll see that submenu is not displaying at all in Opera 7 or Firebird 0.7, and in Explorer is going below the content of RP div.

I tackled with this a bit and the solution is:

http://www.aplus.co.yu/suckerfish/index2.html

Menu itself must be RP with a fairly large z-index, which will put it above anything else and thus allow it to work as needed.
For this particular example, IE 6 did not show the menu at all, unless its enclosing DIV was absolutely positioned. This is not always the case as I have similar configuration in another project where is working correctly with pos: relative.

There can be further problems with the pos:relative usage - it all depends where is menu placed. To avoid all problems, its enclosing DIV must be in the BODY. If it's in some other positioned element, there are certainly cases when this problem can appear again, so this is something to keep in mind.

Toni's example is having the sme problem, of course: http://www.aplus.co.yu/toni/]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: GoT (/13) Visitor</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P50/#58</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#58</guid>         
	  
      <description><![CDATA[This is a very good example, although there are several other solutions to get the second level of the list working under Internet Explorer.

On a dutch forum (see URL) I saw the following example:

http://www.xs4all.nl/~peterned/beehive2/list.html

The solution is pretty simple and working within Internet Explorer. I must say that I did not tested it with (Lorum ipsum) text arround it, so I will mabey have the same problem as Aleksander describes above.

Tony's example is nice because he is using an Internet Explorer only feature .htc (HTML Compontens) to get the dropdown list working under IE (because IE only doesn't support het speudo element :hover). When doing this you don't let other browsers execute the javascript code. The solutions given to get the list working under Opera 6 is superfluous, because Opera users mostly download the latest version imho.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Brian Hess</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P50/#59</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#59</guid>         
	  
      <description><![CDATA[I don't believe this particular instance has been discussed.

When viewing the barebones version of the dropdown with IE5 for the Mac, v5.2.3 (ships with Panther, and is the current DL at MSFT), the submenu pops out to the side:

[img]http://bhess.net/images/ie5macsuckerfish.jpg[/img]

Doh!]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Tony Aslett</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P60/#60</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#60</guid>         
	  
      <description><![CDATA[Thanks Guy's for the excellent menu and inspiration you have provided. For years IE has made it impossible to do a pure CSS drop down menu now with the help of a minute JavaScript file we can do magic. After reading your article I went ahead and created my own menu which allows multiple levels and a vertical version as well.
http://www.csscreator.com/menu/multimenu.php

Thanks again for the inspiration.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Aleksandar Vacic</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P60/#61</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#61</guid>         
	  
      <description><![CDATA[Inspired by all this posts, I recoded the menu I have, using much of what was discussed here.

http://www.aplus.co.yu/Sparks/ADxMenu/34/

It's a long read, since I tried to explain every step.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Stan Taylor</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P60/#62</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#62</guid>         
	  
      <description><![CDATA[I put this menu on a test page from my site http://www.stangeek.com/test/to.html and strangely, when the menus drop down, they are semi-transparent with the content that appears on the page below the menu. I'm not doing anything in the CSS for the &lt;div&gt; below the menus that would account for this, that I know of. 

I've tested in Mozilla Firebird 0.7 and MSIE 6, both on WinXP and I get the same behavior in both.

Any help would be greatly appreciated.

Thanks, Stan]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: apartness</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P60/#63</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#63</guid>         
	  
      <description><![CDATA[Aleksandar, the example you give (and describe on your weblog) is very nice and well developed as I say so for myself. But after reading the following articles from PPK (http://www.quirksmode.org/):

Keep CSS Simple
http://www.digital-web.com/columns/keepitsimple/keepitsimple_2003-11.shtml

Keep Javascript Simple
http://www.digital-web.com/columns/keepitsimple/keepitsimple_2003-07.shtml

I thought by myself, isn’t your example having to much Javascript tricks and to much CSS hacks? When I view your source (the html, javascript and CSS source) I must say that there is a lot of code to get something simple working like this.

The examples which Tony gave in a previous posting and the referral that someone else gave to a script made by Peter Nederlof look much more ‘simple’ than your example. Maybe this is worth thinking about this.
]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Aleksandar Vacic</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P60/#64</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#64</guid>         
	  
      <description><![CDATA[&gt; I thought by myself, isn’t your example having
&gt; to much Javascript tricks and to much CSS 
&gt; hacks? When I view your source (the html, 
&gt; javascript and CSS source) I must say that 
&gt; there is a lot of code to get something simple
&gt; working like this

It all depends on what you want and need. I'm using this throughout the client's web site, where I can have one or two menus on the same page (Stan James example).

Site spec is such that I can either use DOM+CSS menu or select list. And I utterly hate the site of drop-down box in the middle of top navigation (not to mention what client thinks of that).
Also, that is bookie web site with lots of forms and 1 to 3 drop-downs at the page top, just below top nav. If it wasn't for the WCH (script that hides windowed controls) I would be doomed to show/hide, as StanJames's current site works.

So, for me - no, this is just fine. Actually, excellent. Compared to previous menu script used (with tables and lots of browsers tweaks) this code is 3x smaller. (When we finally deploy this new web site, I plan to post a write-up about it, as I think it would be very helpfull for anyone designing something complicated like this).

&gt; But after reading the following articles 
&gt; from PPK...

I completly disagree with his article about CSS hacks. But this is not the place to discuss it.
As for Javascript part, I partially agree, but again - this discussion thread is not about these articles.
It's sad the Digital Web is not using blogs for such articles.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Aleksandar Vacic</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P60/#65</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#65</guid>         
	  
      <description><![CDATA[&gt; I put this menu on a test page from my site
&gt; http://www.stangeek.com/test/to.html and 
&gt; strangely, when the menus drop down, they are &gt; semi-transparent with the content that appears

URL you posted is using gazingus.org's menu script, not Suckerfish dropdowns. Are you sure you posted the question to the right place? :)
]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Stan Taylor</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P60/#66</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#66</guid>         
	  
      <description><![CDATA[Thanks, Aleksander. I'd been playing with both when I posted that comment. Got confused about which was which. Sorry.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Tom Robinson</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P60/#67</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#67</guid>         
	  
      <description><![CDATA[Is there a solution/hack for the problem of dropdowns going behind form controls and Flash content?]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: apartness</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P60/#68</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#68</guid>         
	  
      <description><![CDATA[&gt; Is there a solution/hack for the problem
&gt; of dropdowns going behind form controls
&gt; and Flash content?

You can have a look at the website of Aleksandar (who has posted more comments within this article).

On his website you can find the following javascript code which will help you to hide the window controls in Internet Explorer:

http://www.aplus.co.yu/Sparks/WindCtrlHider/

He is also using this for his dropdown menu example:

http://www.aplus.co.yu/Sparks/ADxMenu/34/]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Aleksandar Vacic</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P60/#69</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#69</guid>         
	  
      <description><![CDATA[&gt; Is there a solution/hack for the problem of 
&gt; dropdowns going behind form controls and Flash
&gt; content?

apartness already pointed you to the script on my site. For IE drop-downs, that is the way to go.

If only Flash files are troubling you, then you can save some download time (meaning not using WCH script) if you add this to Flash object tag (or as attribute for embed):



More details at: http://www.macromedia.com/support/flash/ts/documents/wmode.htm

WCH does not require this parameter - layer will be drawn over flash file in any case.

Mozilla and Opera 7 can layer-over drop-downs, but I think that they require parameter above for Flash.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: toni</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P70/#70</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#70</guid>         
	  
      <description><![CDATA[Flash is a nasty beast, better avoided than covered with menus. Here's my "simple solution"* to the problem:

http://jaslice.rkc.si

Sorry about the strange language, though (and yes, the menu doesn't work in Opera yet... :)

*no flames]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Iain McWhirter</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P70/#71</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#71</guid>         
	  
      <description><![CDATA[Thanks for this article, well written and very useful. I've been trying to implement this and have been successful except for one small instance in IE (quelle surprise....)

In the dropdowns, when I rollover the menu options I'd like to change the background image of the li li object. This works fine in Mozilla using the standard CSS e.g. 

#menu li li:hover, #menu li li.over &#123;
background: url(../images/global/menu/menu_dropdown_background_on.gif) #ffffff bottom right no-repeat;&#125;

As you can see I'm trying to get IE to do the same using the .over notation for the top level but it's refusing to do it. Any ideas ?]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Michael G</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P70/#72</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#72</guid>         
	  
      <description><![CDATA[I thought, is nested lists the most semantically correct way to do a menu with subs?

What about two separated lists instead? One with the "main menu" and another with the submenu placed directly under the first?

Ex &lt;ul id="mainmenu"&gt;
     &lt;li&gt; link1 &lt;/li&gt;
     &lt;li&gt; link2 &lt;/li&gt;
   &lt;/ul&gt;

   &lt;ul id="sub"&gt;
     &lt;li&gt; sublink1 &lt;/li&gt;
     &lt;li&gt; sublink2 &lt;/li&gt;
   &lt;/ul&gt;
   
In that way the most relevant links appears first (semantically speakin) and then the next level.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Darice</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P70/#73</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#73</guid>         
	  
      <description><![CDATA[I've ben modding the list to get the design and effects I want. Most of all I want to show the 
list on top and not below the navigation, for that I changed the top: 1em;  to bottom: 16px;  I use px due to my layout, etc.  Now using bottom works perfect in Mozilla and IE but not in Opera 7.23 The list will display on the bottom of the page instead of above the navigation. Does Opera has issues with the bottom property?]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Paul Charteris</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P70/#74</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#74</guid>         
	  
      <description><![CDATA[Dear group, I have added &nbsp; to my lists so the sentence does not break into two lines on my pulldown menus (see below).  

&lt;li&gt;[url="prod/new.html"]What's&nbspNew;[/url]&lt;/li&gt;

However, this does not validate as XHTML 1.0 transitional (w3c markup validation msg below)

cannot generate system identifier for general entity "nbspNew" 
reference not terminated by REFC delimiter 

Is there a fix around using the &nbsp; character or should I not worry too much abut failure to validate?

Cheers, Paul]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Hershel Robinson</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P70/#75</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#75</guid>         
	  
      <description><![CDATA[Doesn't work well for me in IE6 Win 2K. The background colors of the dropdowns in the pretty example flash--sometimes there sometimes not]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Cam</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P70/#76</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#76</guid>         
	  
      <description><![CDATA[Paul, check your code - it loks like you have left the semi-colon off the end of the non-breaking space, so the validator tries to read it all as one entity.

And IMO, trying to make pages validate is A Good Thing. It's always worth worrying about.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Inti</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P70/#77</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#77</guid>         
	  
      <description><![CDATA[Menu can see perfectly in Mozilla1.5, but only high level links works :( 

any help? 

Thanks in advance.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: John McClung</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P70/#78</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#78</guid>         
	  
      <description><![CDATA[This is a great and easily explained article. Is there a way to have this type of dropdowns that is within a left or right side that  when block is shown it pushes everything below down or would this have to be accomplished with Javascript?

Thanks]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: David Reddish</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P70/#79</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#79</guid>         
	  
      <description><![CDATA[Unfortunatly this doesnt work at all in the Konqueror web browser.
Maybe Im a bit obssesed about this but I realy do make every effort to make my pages work in every possible browser. As you may well imagine this often results in my having to leave out effects that i would like to use. I have yet to find a technique that will produce dropdowns that work well in every browser.

It'a annoying but i havent found a way round it yet.

But as a designer im just not prepared to produce pages that wont work correctly in one or more browsers.

So like i would guess pretty much everyone says; roll on the day for universaly standards compliant browsers.

If there is a technique that works universaly i would be very interested to know what it is.
]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Maya</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P80/#80</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#80</guid>         
	  
      <description><![CDATA[Hi, 
thanks for this article, it's super stuff! I got the menu working (IE5+) and it looks good. 

Now, on our intranet entry page there are three lists of links where a couple of list items in each should have the mouseover function. It sounds worse than it is! I wont start justifying why one would need more than one "navigation" menu on one page, but instead go to the point: how would I make this work? Just pasting the same menu twice on the page won't work. I suspect the solution is in the javascript - not being very script-literate I would appreciate all help. 

Thank you in advance! 
]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: lolly</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P80/#81</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#81</guid>         
	  
      <description><![CDATA[Over at http://mobius-restaurant.com/bar/menu.htm I've set up the menus, and they work brilliantly in IE6 and Opera7.

However, I've run into a problem in Mozilla1.5. The restaurant (in the middle) dropdown works well until you hover over an item that happens to be on top of the &lt;div id="menu"&gt; - at which point the menu disappears.

It only happens if &lt;div id="menu"&gt; uses overflow: auto; or overflow: scroll. Make it hidden or visible and the menu works just fine.

Any ideas bar moving &lt;div id="menu"&gt; further down to stop the dropdown going over it?]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Teresa Hagan</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P80/#82</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#82</guid>         
	  
      <description><![CDATA[I have only recently found out about this site.  It is wonderful!

I have set up a menu on my test server and they work great everywhere except Safari version 1.0.  I read the earlier posts regarding this issue.

I have tried numerous tweaks to get it to work, all to no avail.  I am wondering if anyone else has been able to successully get a menu to display properly in Safari 1.0?

]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Martin Cameron</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P80/#83</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#83</guid>         
	  
      <description><![CDATA[I've got the drop down menu working fine in IE and Opera, but in Mozilla 1.6a and Galeon, the hyperlinks don't work. When you do an onClick event, the sub menu disappears but nothing else happens. In Konqueror, it's even wors. The Drop Down List doesn't even appear. Any help would be really appreciated as I do want this to work.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Brian Warren</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P80/#84</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#84</guid>         
	  
      <description><![CDATA[I too would love to find a way to make this usable for Safari 1.0 users - even if it was just hiding the submenus. Currently it looks like trash. So sad. :(

All in all, it's a beautiful menu solution. My favorite so far.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Garry Barrow</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P80/#85</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#85</guid>         
	  
      <description><![CDATA[This technique is sooo close.  It's useable, but really difficult to implement with cross-browser consistency unless you tailor your design to accommodate browser quirks and limitations, as your demo does quite effectively. 

But there's another concession you neglected to mention.

I've noticed that in the markup of the working demo ("pretty" version), the link in each top-level list item is wrapped in a semantically / structurally meaningless set of div tags:

&lt;li id="first"&gt;
&lt;div&gt;[url=""]Overview[/url]&lt;/div&gt;

The need for this isn't explained in the article; but as you evidently discovered, without the extra div all current browsers except ie 5.5 & 6 will insert space after the link when you roll over it -- shifting the list-item links following it to the right on mouseover. 

The behavior is unacceptable.  But the needless div is also an undesirable compromise.

If anyone can come up with a better workaraound, please post it here.

Thanks.

]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Jane Gunther</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P80/#86</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#86</guid>         
	  
      <description><![CDATA[Can anybody tell... why this nice little dropdown do not work in this demo ??
http://www.positioniseverything.net/guests/3colcomplex.html
I have tested it in Netscape, Mozilla (Mandrake) and Galeon and it works fine, but not in IE 6.1.
Can anybody help?
]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Andrew</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P80/#87</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#87</guid>         
	  
      <description><![CDATA[when i add this line 

li:hover, li.over ul

mozilla stops working and when i hover the menu flashes and then it shifts some of the top level elements to the next line.

Any ideas?]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Gwilym Johnston</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P80/#88</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#88</guid>         
	  
      <description><![CDATA[The only the way I can think of to get round the problems of safari 1.0 is to use browser sniffing and then use absolute positioning. However, this totally defeats the whole purpose of using the menu in the first place...any javascript guru's out there who can know of some other work around?]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: c.d.embrey</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P80/#89</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#89</guid>         
	  
      <description><![CDATA[Nice menu but its not 508 compliant. 

I'm a real nut when it comes to standards.

Chuck]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: J</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P90/#90</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#90</guid>         
	  
      <description><![CDATA[This is very short and sweet, and I appreciate that. 

Question... isn't there some way to keep the menus on top/above of other content, like forms and images, instead of the menus hiding underneath them?]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Rafi B.</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P90/#91</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#91</guid>         
	  
      <description><![CDATA[Finding this article made me extremely happy, up until I got far in my project and then realized this horrid situation with IE - the drop down menus started flickering everytime my mouse is over them!
As I went to the suckerfish example I was shocked to find out that they were flickering too.
Strange, the only thing I did was installing STYLEVISION 2004...

Any ideas why this is happening?]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Rafi B.</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P90/#92</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#92</guid>         
	  
      <description><![CDATA[I found a post here that helped me figure out what was the problem with the flickering effect on IE - it's the "Check for newer versions of stored pages" set on "Every visit to the page".   If you change that to "Automatically" it will work fine.   But this a major setback...   Anybody have ideas to fix this bug?
]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: PaulH</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P90/#93</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#93</guid>         
	  
      <description><![CDATA[I am seeing a similar problem as can be seen
here:

http://www.pizza.org/asta/

Any ideas on how to fix this?]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Dante Evans</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P90/#94</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#94</guid>         
	  
      <description><![CDATA[Welll, I don't like it. A background image for a DHTML Menu is a big no-no. I have built my DHTML menus on simple principles, as can be seen at sfhe.cjb.net. As PPK noted, A List Apart is nothing more than some childish wow-factor scripts.

Dante has spoken.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: SamC</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P90/#95</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#95</guid>         
	  
      <description><![CDATA[After running this fine menu for a few days, I begain to receive a JavaScript runtime error:  "Object Required" on the following element:  i&lt;navRoot.childNodes.length

Here's the script:

/* CSS Menu Styles adapted from alistapart  http://www.alistapart.com/articles/dropdowns */
startList = function() {
if (document.all&&document;.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i&lt;navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: SamC</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P90/#96</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#96</guid>         
	  
      <description><![CDATA[I found the cause of the JS error I mentioned previously within minutes after making the post.

Funny how that happens so often.

My .NET page hides the drop-down menus at times, which effectively removes them from the XHTML completely.

I'm not a JS programmer.  Can the JS be modified not to error if no menu is present?

Sam]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: SamC</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P90/#97</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#97</guid>         
	  
      <description><![CDATA[Sometimes old dogs learn new tricks.

Here's a revision that doesn't error out when the menu isn't present:

startList = function() &#123;
 if (document.all&&document;.getElementById) &#123;
  navRoot = document.getElementById("nav");
  if ( navRoot )  &#123;
   for (i=0; i&lt;navRoot.childNodes.length; i++) {
    node = navRoot.childNodes[i];
    if (node.nodeName=="LI") {
     node]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: noemi</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P90/#98</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#98</guid>         
	  
      <description><![CDATA[use the z-index.

If you set the z-index of your main UL to 2 or 3, it and all its contents (incl. any popup menus) will appear on top of anything else on the page.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Sean M. Hall</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P90/#99</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#99</guid>         
	  
      <description><![CDATA[That article was the most god-awful piece of crap excuse for a DHTML menu I've ever seen. And I've seen zpub.com. If you could take your nose out of Mozilla's ass for just a second you'd see a lot. "Gee. Why not make the CSS work in every browser except the most used one". It's like I said:
"A List Apart is nothing but pages with
blah-blah wannabe web-developer text that have
pretty pictures at the top."
Moded.]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>

    <item>
      <title>Posted by: Scott Taylor</title>
	  
	      <link>http://www.alistapart.com/comments/dropdowns/P100/#100</link>
      <guid>http://www.alistapart.com/comments/dropdowns/#100</guid>         
	  
      <description><![CDATA[
One thing I cannot figure out is how to align the drop down list ul to align to the left with its parent li.  It always seems to be indented by 1px.  See the first drop down menu (overview) of the suckerfish drop down (http://www.htmldog.com/articles/suckerfish/example/).  Would there be an easy fix to get this to align left?

Best Regards,

Scott Taylor]]></description>
      <dc:subject></dc:subject>
      <dc:date>2012-01-31T13:00:49+00:00</dc:date>
    </item>


    </channel>
</rss>
