views:

176

answers:

3

I have a menu bar that is rotated slightly. Here are two buttons as an example:

Menu

As a result, I can't use regular HTML to handle this. I need to use a <map> to put hyperlinks over the menu parts. (Or am I missing a killer CSS feature I don't know about?)

I want to map drop-down menus to these buttons. This looks like a nice way to implement drop-down menus: http://javascript-array.com/scripts/simple_drop_down_menu/

However, this does not work on <map>s, I believe. Or am I wrong? Is there a different approach I can take to constructing drop-down menus for a menu bar that is not aligned horizontally?

A: 

Do you want the dropdown menus to cascade on an angle too? if so I think you are out of luck in normal HTML/CSS.

If you are open to Canvas & SVG there are some options, but you won't have any support in IE until IE9 (SVG only, no Cavas AFAIK)

scunliffe
The dropdown menus themselves can be vertical as usual.
Pieter
+2  A: 

What about slicing up the nav into multiple images... one menu item for each image? Then you could build the dropdown off of each image, rather than using an image map. This would also give you the added benefit of turning your nav into a list, which would be more semantic.

How would you do this? A table? I have no experience with `<ul>`s consisting purely out of images.
Pieter
No, not a table, a list. You can use css to style the list so the images you sliced up fit back together. Are you comfortable with css?
I've been using CSS casually for a few years now, but I'm not sure how I can make the <ul> exactly the width of the rest of the header (i.e. no padding, margin, borders or other unwanted behavior).
Pieter