Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

Can Superfish swim to the left???

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

How can I make submenu items from the superfish menu fly out to the left rather than to the right. Am using elevate on this site:
schoolvo.mysubname.com/
  • fluxus's Avatar
  • fluxus
  • 12 Month Developer
  • 204 posts
  • Karma: 2
Last Edit: 14 years 1 month ago by fluxus.
The administrator has disabled public write access.
Hey Jelmar,

Ive noticed some other menus do it intelligrantly recently and I afraid to say our menu isnt that intelligent so it will require a hack and it will hack all of the menus to drop to the left.

So edit the menu css to attach a -ve margin-left value to this rule: #nav li ul

eg for Organica it wil be:

#nav li ul {position: absolute; width: 250px;background: #f9f9f9; z-index: 100000;margin-top: 0px;top: -9999px;border: 1px solid #ddd;border-width: 8px 1px 1px 1px}

Hoep that helps.

Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Hey Anthony,

I am afraid I don't understand what you mean with a -ve margin-left (a negative pixelnumber?), and also I am not sure which file to edit. When I go to the menu.css of the superfish, the #nav li ul rule is not there.

Jelmar
  • fluxus's Avatar
  • fluxus
  • 12 Month Developer
  • 204 posts
  • Karma: 2
The administrator has disabled public write access.
Oh sorry which template is it for?

Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Elevate 1
  • fluxus's Avatar
  • fluxus
  • 12 Month Developer
  • 204 posts
  • Karma: 2
The administrator has disabled public write access.
Thanks in Elevate1 you need to change the #topWrap li ul rule in the template_css.css file to:

#topWrap li ul {position: absolute; width: 248px;background: url(../images/menuOverlay.png); z-index: 100;top: -9999px;margin-left: -150px;}

That will position it 150px to the left.

Cheers Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Thanks, that does position the menu that breaks out leftly, but the parent items they belong to stay in the same place. Here:
schoolvo.mysubname.com/
  • fluxus's Avatar
  • fluxus
  • 12 Month Developer
  • 204 posts
  • Karma: 2
The administrator has disabled public write access.
Ah ok try this :

#topWrap li ul ul {margin: 0 0 0 -495px}

Thats the rule directly underneath :)

Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
I had played around with this before. I have done what you said, but the menu does not seem to want to move:-(
  • fluxus's Avatar
  • fluxus
  • 12 Month Developer
  • 204 posts
  • Karma: 2
The administrator has disabled public write access.
Cache perhaps? It was working here for me when I manipulated the files.
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Cache does have a way of caching one unawares. Not this time tho. It really does not go. I will send ftp details in a ticket?
  • fluxus's Avatar
  • fluxus
  • 12 Month Developer
  • 204 posts
  • Karma: 2
The administrator has disabled public write access.
Sure Ill check it in the morning - about to clock of now :)

If its urgent perhaps buzz Seth back here and he may take a look for you.

Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Not urgent. Important, but not urgent:-) Thanks and sleep well.
Blessings,
Jelmar
  • fluxus's Avatar
  • fluxus
  • 12 Month Developer
  • 204 posts
  • Karma: 2
The administrator has disabled public write access.
Hmm, not certain this is the most 'elegant' way of doing this, but I moved you menu to the left modding this rule as highlighted (template_css.css line 42)

#topWrap ul {
background:url("../images/navSep.jpg") no-repeat scroll right 7px transparent;
float:left;
margin:0 0 0 -286px;
}

-286px aligns it (I think) with the image below. Of course, once you do that maybe you don't want your menus flying out to the left anymore?
  • Seth's Avatar
  • Seth
  • Moderator
  • 8358 posts
  • 225 Thanks
  • Karma: 202
The administrator has disabled public write access.
Hi Seth,

Thanks. That DOES align the menu the way I want it. But after taking out the adjustments that Anthony suggested earlier, all my submenu items are now flying somewhere in browser limbo to the left.
What am I missing?

Jelmar
  • fluxus's Avatar
  • fluxus
  • 12 Month Developer
  • 204 posts
  • Karma: 2
The administrator has disabled public write access.
IMPORTANT UPDATE: my client has looked at the site and he does not want the menu to be on the left. So the question is back to where it started from: How can I get the menu items to break out to the left so they dont swim out of the screen.

Thanks,
Jelmar
  • fluxus's Avatar
  • fluxus
  • 12 Month Developer
  • 204 posts
  • Karma: 2
Last Edit: 14 years 1 month ago by fluxus.
The administrator has disabled public write access.
Okay so far so good. The menu is back to the right where it belongs. And by applying this rule: #topWrap li ul ul {margin: 0 0 0 -495px} and the menu breaks out to the left. Problem now is that it looks so unnatural because the menus seem to appear from 'nowhere; rather than the item they are supposed to spring from. Is there any way to reverse this? Or maybe just statically flip into existence?
  • fluxus's Avatar
  • fluxus
  • 12 Month Developer
  • 204 posts
  • Karma: 2
The administrator has disabled public write access.
Hey Jelmar,

This actually requires a bit of hacking to the superfish.js and both Jeremy and Jason are away at the moment and they are the JS wizards. Id like to build the functionality into the dropdown so when they get back at the end of this week Ill get an idea on how to add this feature to the menu.

Thanks Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Hey Anthony,

That would be great. I am away myself next week for teaching yoga in the french Alps. (My other job:-)
So no rush, want to get it live in the week thereafter.
Blessings,
Jelmar
  • fluxus's Avatar
  • fluxus
  • 12 Month Developer
  • 204 posts
  • Karma: 2
The administrator has disabled public write access.
Just added it to the todo list - Ive been meaning to look at it for ages.

Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers