image alignment

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

image alignment

Post by Ruth »

According to the references there is something called imagealign. It says it will align the image relative to the item and the valid positions are left, center, right. Now, the problem is this...if one creates a horizontal menu with the following coding

Code: Select all

with(milonic=new menuname("Main Menu")){
style=menuStyle;
top=100;
menualign="left";
alwaysvisible=1;
menuwidth="100%";
orientation="horizontal";
aI("text=whatever;itemwidth=100;");
aI("text=whatever2;itemwidth=100;showmenu=1st;");
aI("text=whatever3;itemwidth=100;showmenu=2nd;");
aI("image=welcome.gif;imagealign=center;");
}
that image never centers in whatever space is left for that particular item. Of course there's not really anything in the item except the image, but I thought it could be made to center in whatever that item's width would become as the screen size changed? I've tried everything I could think of, including putting in the center tags, lol. but it just always goes to the left.... What I wanted to get was an image that would center in the last empty part of the menu which spans 100% so that if the window is resized it would just move to the center of that item continuously. So, how would one go about that?

Ruth
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Haven't tried a % figure, Ruth, but I do have this working and the image-only item is centered...

Code: Select all

with(milonic=new menuname("ByLaws")){
style=menuStyle;
itemwidth=160;
aI("text=PDF file -<br>&nbsp;&nbsp;Adobe Reader required;type=header;");
aI("image=/images/getacro.gif;url=http://www.adobe.com/products/acrobat/readstep2.html;target=_new;imagealign=center;itemheight=37;status=Download Adobe Reader;");
aI("text=AEC ByLaws;url=docs/AECByLaws.pdf;status=AEC ByLaws;");
}
See it at http://azec.org/about.html under ByLaws.
John
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Well, that's rc31 and that won't work after rc32, I don't have 33 but I have from then up, and i tried 34, 37 and that center no longer works. Also, if I can explain what I did...... :lol: I just tried a bunch of things to use the setting I had, and everything worked fine, it always centered even with the menuwidth="100%"; until I made the menu horizontal, then even if I removed the 100% it wouldn't center. And, it won't center at all with the new release candidates.

Ruth
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Ah, well - it would appear I have forgotten to keep them updated :? I'll try and do it from here (work) and let you know.
John
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Ruth, you are, of course, correct. I just uploaded RC49 and my previously centered graphic is now flush left!

Andy - http://azec.org/about.html, AEC ByLaws menu, the Adobe graphic should (used to be) centered. Sometime ago an RC has moved it to the left. See above for the _data.
John
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

RC50 - Going up soon will fix this.

Read yer email John - Got some news on this RC situation. I think 50 is a little too many don't you :D

Cheers
Andy
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Andy wrote:RC50 - Going up soon will fix this.
Tank U :!:
Andy wrote:Read yer email John - Got some news on this RC situation. I think 50 is a little too many don't you :D
Well, since you brought it up - way too many. :roll:

Do I small a final in the wind (with appropriate fixes from there)?
John
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

RF50 is now up.
Do I smell a final in the wind (with appropriate fixes from there)?
Hmm, could be :D

-- Andy
User avatar
fredlongworthhighschool
Mega Advanced
Mega Advanced
Posts: 362
Joined: Fri Jun 27, 2003 11:34 am
Location: Manchester, England.
Contact:

Post by fredlongworthhighschool »

Does RF mean Release Final?
Andy Davis
Web Designer & Smartboard Manager

Fred Longworth High School, Manchester, England.
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

What RF50 means is that Andy can't type properly, should have been RC50.

But since you mention it, we are going for a final within the next day or so.

Cheers
Andy
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

fredlongworthhighschool wrote:Does RF mean Release Final?
Could be, Andy. Check the slightly modified comments line...
John
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

RF50 posted to azec.org and I again have a centered image!

Tank U!
John
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Andy wrote:What RF50 means is that Andy can't type properly, should have been RC50.
It just means Andy had it deeply on his mind when he typed the line.

No problemo...
John
Post Reply