need help with positioning

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
ybouc
Advanced
Advanced
Posts: 26
Joined: Thu Oct 16, 2003 8:34 pm
Location: Montreal, QC Canada
Contact:

need help with positioning

Post by ybouc »

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 !
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

In the menu definition, use

Code: Select all

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
Post Reply