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.

Stacking Menu Item Name

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

Does anyone know how to stack menu names

example

Degree
Programs


it html it kinda looks like
<center>Degree<br>Programs

my site is gaiasoutheast.org


Thanks!
  • jjohnston's Avatar
  • jjohnston
  • 12 Month Developer
  • 139 posts
  • Karma: 2
The administrator has disabled public write access.
Hey JJ,

Do you mean make the top menu go vertical?

try adding -vertical to the menu module. Thats a class thats built into the framework but it might not work in this instance - let me know if it does :)

Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
No. I wanted menu items that stack in this fashion. www.holisticecology.org/view_subpage9.php, but without using images.

Thanks
  • jjohnston's Avatar
  • jjohnston
  • 12 Month Developer
  • 139 posts
  • Karma: 2
The administrator has disabled public write access.
Hey JJ,

You could inject a line break into the menu item name but I would not recommend it because it will have other side effects. For something lie this I would look for a javascript solution. Probably using jQuery to get the text from the menu item (#nav ul li), and use regex to replace the space with a <br>. Inject the new html into the menu. That could work.

Cheers,Jason
  • Jason D's Avatar
  • Jason D
  • 6 Month Developer
  • 2957 posts
  • 12 Thanks
  • Karma: 75
The administrator has disabled public write access.
Whew!!! I can tell you're a coder. I'm sitting here sweating just thinking about injecting html and regex and javascript. I'm going to try this method first
.moduletable-superfish ul li, #nav ul li {
margin:0 20px 0 0;
width:5em;
}
If it doesn't work I'll have to suck it up or hope the client changes their mind. Thanks Jason
  • jjohnston's Avatar
  • jjohnston
  • 12 Month Developer
  • 139 posts
  • Karma: 2
Last Edit: 14 years 11 hours ago by jjohnston.
The administrator has disabled public write access.
Whew!!! I can tell you're a coder. I'm sitting here sweating just thinking about injecting html and regex and javascript. I'm going to try this method first
.moduletable-superfish ul li, #nav ul li {
margin:0 20px 0 0;
text-align:center;
width:5em;
}
If it doesn't work I'll have to suck it up or hope the client changes their mind. Thanks Jason
  • jjohnston's Avatar
  • jjohnston
  • 12 Month Developer
  • 139 posts
  • Karma: 2
The administrator has disabled public write access.
Whew!!! I can tell you're a coder. I'm sitting here sweating just thinking about injecting html and regex and javascript. I'm going to try this method first
.moduletable-superfish ul li, #nav ul li {
margin:0 20px 0 0;
text-align:center;
width:5em;
}
If it doesn't work I'll have to suck it up or hope the client changes their mind. Thanks Jason
  • jjohnston's Avatar
  • jjohnston
  • 12 Month Developer
  • 139 posts
  • Karma: 2
The administrator has disabled public write access.
Whew!!! I can tell you're a coder. I'm sitting here sweating just thinking about injecting html and regex and javascript. I'm going to try this method first
.moduletable-superfish ul li, #nav ul li {
margin:0 20px 0 0;
text-align:center;
width:5em;
}
If it doesn't work I'll have to suck it up or hope the client changes their mind. Thanks Jason
  • jjohnston's Avatar
  • jjohnston
  • 12 Month Developer
  • 139 posts
  • Karma: 2
The administrator has disabled public write access.
Whew!!! I can tell you're a coder. I'm sitting here sweating just thinking about injecting html and regex and javascript. I'm going to try this method first
.moduletable-superfish ul li, #nav ul li {
margin:0 20px 0 0;
text-align:center;
width:5em;
}
If it doesn't work I'll have to suck it up or hope the client changes their mind. Thanks Jason
  • jjohnston's Avatar
  • jjohnston
  • 12 Month Developer
  • 139 posts
  • Karma: 2
The administrator has disabled public write access.
Whew!!! I can tell you're a coder. I'm sitting here sweating just thinking about injecting html and regex and javascript. I'm going to try this method first
.moduletable-superfish ul li, #nav ul li {
margin:0 20px 0 0;
text-align:center;
width:5em;
}
If it doesn't work I'll have to suck it up or hope the client changes their mind. Thanks Jason
  • jjohnston's Avatar
  • jjohnston
  • 12 Month Developer
  • 139 posts
  • Karma: 2
The administrator has disabled public write access.
Whew!!! I can tell you're a coder. I'm sitting here sweating just thinking about injecting html and regex and javascript. I'm going to try this method first
.moduletable-superfish ul li, #nav ul li {
margin:0 20px 0 0;
text-align:center;
width:5em;
}
If it doesn't work I'll have to suck it up or hope the client changes their mind. Thanks Jason
  • jjohnston's Avatar
  • jjohnston
  • 12 Month Developer
  • 139 posts
  • Karma: 2
The administrator has disabled public write access.
Well if the content does not change much, you have a winner there I think. Fingers crossed :)

Cheers,
J
  • Jason D's Avatar
  • Jason D
  • 6 Month Developer
  • 2957 posts
  • 12 Thanks
  • Karma: 75
The administrator has disabled public write access.

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

Happy Campers