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:20
offset in V5
Poster: topachou
Dated: Wednesday August 13 2003 - 20:25:19 BST
I'm using the v5.
I have my main menu set to : screenposition = "center; middle".
In order to position my menu, I'd like to have :
- horizontal offset = -200px
- vertical offset = -100px.
How can I do that ?
Thanks
Poster: topachou
Dated: Wednesday August 13 2003 - 23:39:11 BST
Pleaaaase, guys !
It's really important, and I've just past 3 hours looking for a trick.
I'm a bit desesperate here. No offset with V5 ?
Come on ! It's not possible )
Poster: fredlongworthhighschool
Dated: Thursday August 14 2003 - 8:22:45 BST
This is my code that leaves the menu in the middle......
Code:
with(milonic=new menuname("mainmenu2")){_c=1
top = 10; // was 10
//left = 300; // was 10
//itemwidth=90 // was 60
//menuwidth="29%"; // was 99%
borderwidth = 1; // was 1
screenposition = "center;middle";
alignment="center";
style = mainStyle;
alwaysvisible = 1;
orientation="horizontal"
top = 10; // was 10
//left = 300; // was 10
//itemwidth=90 // was 60
//menuwidth="29%"; // was 99%
borderwidth = 1; // was 1
screenposition = "center;middle";
alignment="center";
style = mainStyle;
alwaysvisible = 1;
orientation="horizontal"
If I remove the // from left=300 I can then adjust the position.
I hope this is what you mean.
Andy
Poster: topachou
Dated: Thursday August 14 2003 - 8:37:19 BST
When you remove the // of :
//top=10
//left=10
The menu is not middle centered anymore.
It is no relative positionning but fixed positionning.
It will take the (0,0) coordinate and place the menu at (10,10).
That's not want I want to do. I need to offset (ex: lefOffset=-100, topOffset=-100) my menu from the : middle, center of the screen, so that I can place it relatively.
Thanks for your reply, but I just try it again, and it's not working for me.
I used the "horinzontal.htm" given with the V5.
Try it, you'll see !
Poster: Maz
Dated: Thursday August 14 2003 - 8:59:26 BST
Just a guess... have you tried position="relative";
Poster: Andy
Dated: Thursday August 14 2003 - 9:16:18 BST
Offsets need to be enclosed in quotes with a syntax of
Code:
left="offset=-100"
Offsets are also only used in conjunction with screenposition.
Cheers
Andy.
Poster: topachou
Dated: Thursday August 14 2003 - 12:27:02 BST
Oh my God !
Thank you ANDY, it's working.