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:45
image alignment
Poster: Ruth
Dated: Tuesday February 3 2004 - 4:09:51 GMT
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:
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;");
}
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
Poster: John
Dated: Tuesday February 3 2004 - 4:41:39 GMT
Haven't tried a % figure, Ruth, but I do have this working and the image-only item is centered...
Code:
with(milonic=new menuname("ByLaws")){
style=menuStyle;
itemwidth=160;
aI("text=PDF file -<br> 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;");
}
style=menuStyle;
itemwidth=160;
aI("text=PDF file -<br> 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.
Poster: Ruth
Dated: Tuesday February 3 2004 - 5:28:35 GMT
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...... 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
Poster: John
Dated: Tuesday February 3 2004 - 14:21:25 GMT
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.
Poster: John
Dated: Tuesday February 3 2004 - 14:43:59 GMT
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.
Poster: Andy
Dated: Tuesday February 3 2004 - 15:36:58 GMT
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
Cheers
Andy
Poster: John
Dated: Tuesday February 3 2004 - 15:41:26 GMT
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
Well, since you brought it up - way too many.
Do I small a final in the wind (with appropriate fixes from there)?
Poster: Andy
Dated: Tuesday February 3 2004 - 15:50:00 GMT
RF50 is now up.
Quote:
Do I smell a final in the wind (with appropriate fixes from there)?
Hmm, could be
-- Andy
Poster: fredlongworthhighschool
Dated: Tuesday February 3 2004 - 16:05:56 GMT
Does RF mean Release Final?
Poster: Andy
Dated: Tuesday February 3 2004 - 16:09:57 GMT
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
Poster: John
Dated: Tuesday February 3 2004 - 16:10:51 GMT
fredlongworthhighschool wrote:
Does RF mean Release Final?
Could be, Andy. Check the slightly modified comments line...