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
			
			
									
						
										
						offset in V5
- fredlongworthhighschool
 - Mega Advanced

 - Posts: 362
 - Joined: Fri Jun 27, 2003 11:34 am
 - Location: Manchester, England.
 - Contact:
 
This is my code that leaves the menu in the middle......
If I remove the // from left=300 I can then adjust the position.
I hope this is what you mean.
Andy
			
			
									
						
							Code: Select all
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"I hope this is what you mean.
Andy
Andy Davis
Web Designer & Smartboard Manager
Fred Longworth High School, Manchester, England.
			
						Web Designer & Smartboard Manager
Fred Longworth High School, Manchester, England.
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 !
			
			
									
						
										
						//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 !
Offsets need to be enclosed in quotes with a syntax of 
Offsets are also only used in conjunction with screenposition.
Cheers
Andy.
			
			
									
						
										
						Code: Select all
left="offset=-100"Cheers
Andy.
- fredlongworthhighschool
 - Mega Advanced

 - Posts: 362
 - Joined: Fri Jun 27, 2003 11:34 am
 - Location: Manchester, England.
 - Contact:
 


