How can I make a menu like Amazon's. Is it JS?
Please see attachment
If the CSS is too difficult to read there (what's going on) then Sons of Suckerfish has a kinda more readable version.
They prolly changed it but I remember someone saying they liked the expansion menu at Amazon and I was like, what expansion menu?
Earlier, they had a JS expansion menu, where if you were like me and had no scripts, the menu was just completely open and looked like a regular list of links. With JS on, you only saw the main headers (books, music, etc).
No, no display: none. Remember how screen readers deal with that.
It's the pull-offscreen in -bazillion units method.
What I have discovered is that if you want any keyboard functionality (if you're bringing the individual sub-list items back onscreen with :focus), your left or left-margin has to be in px. I don't know why, but it never worked for me with "em" units. ????