Expand MegaMenu right to left
Permalink Browser Info Environment
I have my site navigation in the top right corner. When the MegaMenu is activated it expands from left to right and goes past my site's container causing several display issues. I'm trying to change it so it expands from right to left instead.
I've managed to scoot the MegaMenu drop down over with CSS but naturally its not quite ideal. As you can see the drop down doesn't look like it stems from the nav button. http://www.screencast.com/t/bwX5UYh7....
Is there a better solution to this?
I've managed to scoot the MegaMenu drop down over with CSS but naturally its not quite ideal. As you can see the drop down doesn't look like it stems from the nav button. http://www.screencast.com/t/bwX5UYh7....
Is there a better solution to this?
Type: | Discussion |
---|---|
Status: | New |
Thanks for the response. Great add-on too.
I had to brush up on my Jquery but I figured out what I needed. Just replacing this ...
With this ...
Was exactly what I was looking for
I had to brush up on my Jquery but I figured out what I needed. Just replacing this ...
// If Left Position Is Negative Set To Left Margin if(subLeft > 0){ $('.sub-container',this).css('left','0'); }else if(marginRight < marginLeft){ $('.sub-container',this).css('right','0'); }else { $('.sub-container',this).css('left',parentLeft+'px').css('margin-left',-marginLeft+'px'); }
With this ...
$('.sub-container',this).css('right','0');
Was exactly what I was looking for
Glad that you were able to get that working.
Thanks for leaving a positive review I really appreciate that :)
maybe you might want to checkout other add-ons at c5extras.com.
Have a great day
JB
Thanks for leaving a positive review I really appreciate that :)
maybe you might want to checkout other add-ons at c5extras.com.
Have a great day
JB
You can tinker with the "2" number which halves the left margin and handles the centring of it.
I haven't tried tweaking it myself, but that would be a good place to start.
Hope this helps.
JB