Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

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:40

need help with positioning


Poster: ybouc
Dated: Friday February 27 2004 - 2:31:04 GMT

Ok, here I am again ! :-D

This is for a new project I'm working on. Here's the lowdown :

This site has a fixed width of 750 pixels, and it is centered in a table. When you're using 800x600, you don't see any difference, but when you're at 1024x768 and up, you see that the site has only 750px, and takes up only the center of the window.

Now, I need my menu to say, be on the left-most part of the site. I've usually been using the "top", and "left" offset functions to position the menu, but now, this would change as the browser window gets wider and wider, since the content is centered.

I have tried using the "relative" position function and put the menu in a table cell, but this pushes down all the rest of my content...

what could i do to fix this ? (i don't wanna have to keep the content to the left.. :-( )

thanks in advance !


Poster: kevin3442
Dated: Friday February 27 2004 - 17:24:40 GMT

In the menu definition, use
Code:
top=120;
screenposition="center";
left="offset=-72";

Substitute appropriate values for top and the left offset. In left offsets, negative values bump the menu to the left; positive values to the right. The result of the abpove code will be that your menu will want to center itself on the page, but will offset 72px to the left of center (or however many pixels you specify in the offset value). You might also want to set your menuwidth.

Hope that helps,

Kevin