I’m playing with the jQuery superfish menu:
http://users.tpg.com.au/j_birch/plugins/superfish/#examples
Here’s a direct link to the CSS being used:
http://users.tpg.com.au/j_birch/plugins/superfish/css/superfish.css
I’m trying to figure out how to adjust the default CSS to get the dropdown menus to open UP instead of DOWN, and I can’t figure out how to make it happen.
This is what I thought would work:
I changed this:
.sf-menu li:hover ul, .sf-menu li.sfHover ul { left: 0; top: 2.5em; /* match top ul list item height */ z-index: 99; }
To this:
.sf-menu li:hover ul, .sf-menu li.sfHover ul { left: 0; bottom: 2.5em; /* match top ul list item height */ z-index: 99; }
but no dice…
I guess the correct way would be to adjust the “top” to be negative the height of the dropdown menu like this…
.sf-menu li:hover ul, .sf-menu li.sfHover ul { left: 0; bottom: -HEIGHT OF < UL >; z-index: 99; }
…but I can’t know the heights, as the menus are dynamically created.
and ideas ?