Hi, I'm sure there must be a simple answer to this but I'm at a loss to spot it right now
I'm using sample89_ver5_902 and I'd like to offset the sub menu background images to be centered underneath the main menu buttons, rather than be anchored top left. I assumed that the _subOffsetLeft parameter would do this, but to no avail. Anybody tell me what I'm doing wrong please?
Sample URL at: http://www.webezedev.net/nhga/index.php What I'd like it to do is: http://www.webezedev.net/nhga/NHGA_home.jpg
Many thanks
L
_subOffsetLeft
Re: _subOffsetLeft
Hi,
Try using a menu offset, like this:
You can do both top and left offsets as well as positive and negative values.
Hope this helps,
Andy
Try using a menu offset, like this:
Code: Select all
with(milonic=new menuname("categories")){
left="offset=-30";
style=background;
itemwidth=175;
aI("bgimage=graphics/sub_01.png;text=HOUSE BUILDERS;itemheight=38;url=index.php;");
aI("bgimage=graphics/sub_02.png;text=LANDSCAPE ARCHITECTS & GARDEN DESIGNERS;itemheight=45;url=index.php;");
aI("bgimage=graphics/sub_03.png;text=OPEN CATEGORIES;itemheight=35;url=index.php;");
}
You can do both top and left offsets as well as positive and negative values.
Hope this helps,
Andy
Re: _subOffsetLeft
Cheers Andy, worked a treat. All the best
L
L