Let's say I have a menu bar with 5 items, is it possible to make them all the same width? like 100px each? or if I could divide their width percentage wise that would be even better.
I noticed that all the default menus that come with CMS-MS give menu items automatic width depending on the text that each item has.
Any recommendations will be highly appreciated
Same-Size menus
-
- Forum Members
- Posts: 80
- Joined: Thu Sep 13, 2007 10:50 am
Re: Same-Size menus
Hi There,
It would be perfectly possible to fix menu item widths in CSS but you have to consider what happens if the users chooses menu text longer than your width...
Generally the text would wrap and this might disrupt your design.
I guess it's possible to write some funky PHP or maybe Javascript to say find the length of your longest menu item and adjust the width of the others to match. Not exactly easy though.
Hope that helps,
Bob
It would be perfectly possible to fix menu item widths in CSS but you have to consider what happens if the users chooses menu text longer than your width...
Generally the text would wrap and this might disrupt your design.
I guess it's possible to write some funky PHP or maybe Javascript to say find the length of your longest menu item and adjust the width of the others to match. Not exactly easy though.
Hope that helps,
Bob