PDA

View Full Version : Unable to fill out width of container


jrdub
08-25-2007, 11:12 PM
I have installed udm4 as a vertically aligned, relatively positioned menu (as seen here: http://healthabounds2.com.lamphost.net). I would like the top level list items to fill out all 180px of the container element and not leave room for the flyout, instead having the child list elements display either beneath or overlap the content on the right. Is this possible? Right now the menu occupies about half the width of the container.

bcarl314
08-27-2007, 02:21 PM
I believe you'll need to edit your udm-custom.js file as follows:

find these lines:

um.navbar = [
"-6", // nav -> menu x-offset (+-)["n" pixels]
"-11", // nav -> menu y-offset (+-)["n" pixels]
"7.5em", // width ["em"|"ex"|"px"] (vertical navbar only - horizontal navbar items have "auto" width) ("%" doesn't work right)
];


and change the 7.5em to the width you desire. (i.e. 180px)

Example:

um.navbar = [
"0", // nav -> menu x-offset (+-)["n" pixels]
"0", // nav -> menu y-offset (+-)["n" pixels]
"180px", // width ["em"|"ex"|"px"] (vertical navbar only - horizontal navbar items have "auto" width) ("%" doesn't work right)
];

jrdub
08-28-2007, 10:54 PM
That did the trick!

Thanks so much!

John