CSSMenu Horiz and narrow browser windows

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
martin42
Forum Members
Forum Members
Posts: 126
Joined: Sat Aug 20, 2005 11:35 pm

CSSMenu Horiz and narrow browser windows

Post by martin42 »

Hi,

I'd love to use a Horizontal menu for my site - much more space-efficient - but there's an old  problem with Horizontal menus on narrow screens.

Example in the 0.12 sample data:
  http://127.0.0.1/index.php?page=cssmenu_horizontal
Resize the window to 800x600 (maybe smaller!), then pick "Extensions"/"Tags" from the menu.  The problem is that the sub-sub menu items can be appear off-screen.

Does anyone have a fix, so that the sub-menus go to the left when necessary to avoid off-screen text?

Many thanks!
miss_d_bus
Forum Members
Forum Members
Posts: 121
Joined: Sun May 01, 2005 4:27 pm

Re: CSSMenu Horiz and narrow browser windows

Post by miss_d_bus »

Sorry but no one can see this example as its only on your own computer.
Can you do a screen shot instead?
martin42
Forum Members
Forum Members
Posts: 126
Joined: Sat Aug 20, 2005 11:35 pm

Re: CSSMenu Horiz and narrow browser windows

Post by martin42 »

Here's a screenshot illustrating the problem...

Use the scrollbar below the image if you can't see the right-hand-side of the image.


[attachment deleted by admin]
Last edited by martin42 on Mon Mar 13, 2006 6:21 pm, edited 1 time in total.
miss_d_bus
Forum Members
Forum Members
Posts: 121
Joined: Sun May 01, 2005 4:27 pm

Re: CSSMenu Horiz and narrow browser windows

Post by miss_d_bus »

i have faced a similar problem but with vertical menus with the sections being a lot wider than the text.
I would suggest making a copy of the CSS for Default CSSMenu Horizontal before editing it.
This is were the menu elements are sent for example:

/* Set the width of the menu elements at second level. Leaving first level flexible. */

#primary-nav li li {
        width: 200px;
      }

Changing the 200px might help? I am not sure but if you got rid of that width entirely, maybe it might fit to the length of the text for each element? Have a play but ensure you have a copy of the CSS if it doesnt go right first time!
Post Reply

Return to “CMSMS Core”