Quick Nav:  Online Store   |   Login | Register

Dynamic Widths of Menu Items

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
Michael Prosper
<20 Posts
Posts:2


03/24/2008 12:41 AM  

I just purchased the developer version of the Menu and have been working with it for a couple of days now.  However, after much research I've found a limitation that may lead me to request a refund.  I want to clarify that this is not possible before I go through the formal channels...

The solpartmenu allows menu items of varying widths and will dynamically adjust the width of the menu and submenus depending on how much text I place there.   For example:

  • Services
    • Schools
    • District Offices
    • Administrators
    • School Counselors & Psychologists

The solpartmenu will adjust the submenu so that the width is set for the longest item (the last one).  It is my understanding that the Snapsis Menu forces me to set the width of the submenus in order to render correctly.

Here's the problem - my customers set up the menus and submenus on their own - I have no idea how much text they will put in each menu item.  It could be 5 characters, it could be 50.  I need a menu that will allow both lengths and render correctly (without having the text overflow from the submenu box).  After a certain length, the text needs to wrap to the next line.

This is really a deal-breaker for me - I thought I had done enough research before I purchased, but obviously not.  However, I am open to the possibility that I may be mistaken and there is some way for the Snapsis Menu to do this.

Thanks for your help,

Mike

John Mitchell
Posts:3471


03/24/2008 6:31 AM  
Hi Mike,
The reason Solpart works that way is because they use tables.
That can be accomplished with this menu by creating a template that uses Tables to hold your your sub-menus instead of a simple UL.
If you use the Suckerfish template as an example you can just go in and change out the UL/LI lists so that it is using table/tr/td rows.

This could probably also be accomplished by adjusting the CSS, but it would be much harder to keep it dynamic across browsers as you pointed out.

Using the template system in the Snapsis CSS Menu you can really create virtually any type of menu you want.
Michael Prosper
<20 Posts
Posts:2


03/24/2008 11:51 AM  
Hi John,

Thanks for the very prompt reply. Unfortunately, I was hoping to avoid the use of tables since the whole reason for going with the CSSNavMenu is to get away from the unwieldy and bloated Solpart. Looks like I'll have to stay with that for now until I find a true way to go to a CSS layout.

The suckerfish template is an interesting idea, but since I don't have any idea how long the tabs will be, I also don't have any idea how many levels will be nested in the menu. This would make the suckerfish template extremely complex, since it would include both the table elements and 7-15 levels of nesting.
John Mitchell
Posts:3471


03/24/2008 12:31 PM  

I agree that sticking with tableless menus is a good idea. 

You don't actually have to set a fixed width on the items, you could take that property out of the CSS, but IMO it looks kind of ugly to have them show up really small in some just because all the names are small, and really big in others.  If you want a minimum width, then you will need to leave it in.

If you set a fixed width the menu items will wrap as long as there is a whitespace character. So your example above should have been fine.

I just did some Googling and found this post for some other ideas:

http://csscreator.com/node/11146


In order to follow good design practice, I would only give them at most five or six levels of nesting unless they really demanded something more. 

I haven't had anyone come back and ask for more levels than the four that are available in the sample suckerfish template.

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
Forums >Snapsis Product Support >CSS NavMenu > Dynamic Widths of Menu Items



ActiveForums 3.7
Powered by: Snapsis Software