Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:49
How do I do this menu positioning?
Poster: eastestuary
Dated: Monday January 5 2004 - 7:49:41 GMT
I want my menus to be offset from the left by 350 pixels, but then take up 100% of the remaining screen by resizing the space between menu items. I have done it with another script (but that script causes problems with by DIV alignment on other pages).
In other words, itemwidth becomes a variable based browser width, so it takes up:
(browserwidth-350)/(# toplevel menu items)
See here: http://www.dba.com.hk/_newsite/
Setting the menuwidth to 100% produces some very undesirable results (it just stretches the table but not the items in them, and does not properly take into account the left margin).
Anyone know how to do it?
Poster: timrivera
Dated: Monday January 5 2004 - 20:04:37 GMT
In menu_data.js for "Main Menu" put:
Code:
menuwidth="100%";
left=350;
left=350;
Tim
Thanks, but not quite
Poster: eastestuary
Dated: Tuesday January 6 2004 - 1:19:18 GMT
That correctly positions it on left, but does not seem to resize the menus across the remainder of the screen.
Also, I am getting some errors on my page.
Poster: Maz
Dated: Tuesday January 6 2004 - 3:14:30 GMT
Have you tried 100% inside a table, to see if that would contain the right margin.
I have the same problem with centered 100%, if the page is made small the menu extends the background off to the right.
Another thing I've seen is div's inside the menu table items, I doubt that would control the overall width though.
That's not much help i know, sometimes another perspective helps.
regards,
maz
Re: Thanks, but not quite
Poster: timrivera
Dated: Thursday January 8 2004 - 2:05:30 GMT
eastestuary wrote:
That correctly positions it on left, but does not seem to resize the menus across the remainder of the screen.
Try this, taken from: 100% Width Span Menu discussion:
Code:
menuwidth="100%";
itemwidth="100%";
itemwidth="100%";
This works as intended in IE6, but in Opera each menu item gets smooshed to be as short as possible.
Tim