"Float" menu items on resize?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
brent
Beginner
Beginner
Posts: 1
Joined: Sat Dec 06, 2003 1:06 pm

"Float" menu items on resize?

Post by brent »

The easiest way to explain what I need is to show an example:

http://centralbanks.net/boc/draft_site/ ... injar.html

This is the brainjar.com menu, which I quite like apart from the fact that it doesn't work at all in 4.x browsers.

Anyway, try resizing your browser window until it's very narrow. You should see each menu item drop vertically and float to the left, so that all items remain on-screen at all times (very useful when one has a lot of items on a menu, to prevent horizontal scrolling.)

This is not the default behaviour of the script, but was very easy to do: I just added 'float:left' to the appropriate CSS element and voila.

However, I can't see any easy way of doing the same thing with the Milonic menu, short of some heavy-duty recoding of the JS source.

Any suggestions here?
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Just a comment. If you find out how, let me know. I like that. :)

Ruth
Post Reply