menu item depth

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Elander
Beginner
Beginner
Posts: 3
Joined: Fri Jul 25, 2003 12:48 am
Location: Australia

menu item depth

Post by Elander »

Hi, (more questions)

Is there any way to set the overall depth of menu item buttons.

For example, if the button turns out to be 100pixels long by 30 pixels deep, can I control it to make it 100pixels long by 40 pixels deep.


Thanks for any help,

Mark
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

Ok, by item depth, I am guessing you are referring to item height. If while you are creating your menus, you want to set it, do just like I said in this post I have linked below, but instead of itemwidth, put in itemheight.

http://www.milonic.co.uk/menu/forum/vie ... php?t=2128


But if you are referring to programmatically setting the itemwidth and/or itemheight AFTER the fact, meaning, you would like to make the menu, poll it for its current width, and depending on what that is, change its width to something else...try this link below. A guy was trying to get menu widths to be a multiple of 21, so if a menu rendered to 19, he wanted it to grow to 21 and 24px would grow to 42, etc. I got alittle thing to work, but I am trying to put together a little 'plugin' so its easier to do.

http://www.milonic.co.uk/menu/forum/vie ... php?t=2016
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
Post Reply