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?
How do I do this menu positioning?
-
- Beginner
- Posts: 2
- Joined: Mon Jan 05, 2004 8:42 am
How do I do this menu positioning?
Last edited by eastestuary on Tue Jan 06, 2004 3:58 am, edited 1 time in total.
- timrivera
- Super Advanced
- Posts: 31
- Joined: Sun Jan 04, 2004 8:21 pm
- Location: Metro-Atlanta, Georgia, USA
- Contact:
In menu_data.js for "Main Menu" put:
Tim
Code: Select all
menuwidth="100%";
left=350;
-
- Beginner
- Posts: 2
- Joined: Mon Jan 05, 2004 8:42 am
Thanks, but not quite
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.
Also, I am getting some errors on my page.
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
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
- timrivera
- Super Advanced
- Posts: 31
- Joined: Sun Jan 04, 2004 8:21 pm
- Location: Metro-Atlanta, Georgia, USA
- Contact:
Re: Thanks, but not quite
Try this, taken from: 100% Width Span Menu discussion:eastestuary wrote:That correctly positions it on left, but does not seem to resize the menus across the remainder of the screen.
Code: Select all
menuwidth="100%";
itemwidth="100%";
Tim