Same-Size menus

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
hexdj
Power Poster
Power Poster
Posts: 415
Joined: Sat Mar 24, 2007 8:28 am

Same-Size menus

Post by hexdj »

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
SideshowBob
Forum Members
Forum Members
Posts: 80
Joined: Thu Sep 13, 2007 10:50 am

Re: Same-Size menus

Post by SideshowBob »

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
Post Reply

Return to “Layout and Design (CSS & HTML)”