Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

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:42

Another positioning question IE 5.2 on Mac


Poster: noelc
Dated: Wednesday June 8 2005 - 2:52:04 BST

My menus align fine on all other browsers except ie 5.2 on the mac

There are a lot of posts on positioning, and I have read the faq about positioning on the old Mac browser and it looks like I am doing everything correctly (http://www.milonic.com/menufaq.php#mactrouble) - but the menu insists on aligning left instead of right within the table cell.

Seems when other people have posed questions like these the usual follow up is - can we see a sample? - so I have made one available at the following URL:

http://mistnet.com/tonic_for_milonic/


Poster: Ruth
Dated: Wednesday June 8 2005 - 5:42:06 BST

Hi,

You need to remove the menu from the div. It doesn't like being in divs, in particular the browser you are referencing, IE5.2 Mac, has a lot of problems with it in a div. If you want to align it right in that table cell, then in place of the div, put another table, align it right and put the menu in it. Your new set up would be
Code:
<table width="730" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td align="left"><img src="welcome_logo.gif" width="191" height="78"></td>
    <td align="right" valign="top">
      <!-- space available for a rotating quote -->
    </td>
  </tr>
  <tr>
    <td align="right" id="welcome_sub_menu" colspan="2"><table cellpadding="0" cellspacing="0" border="0" align="right">
<tr>
    <td>script>
with(milonic=new menuname("Main Menu")){
style=menuStyle;
alwaysvisible=1;
orientation="horizontal";
overfilter="";
position="relative";
aI("text=<img src=welcome_online_shop.gif border=0>;url=index.php;showmenu=online_shop;");
aI("text=<img src=welcome_our_books.gif border=0>;url=links.htm;showmenu=our_books;");
aI("text=<img src=welcome_magazines.gif border=0>;url=links.htm;showmenu=our_mags;");
aI("text=<img src=welcome_articles_and_classes.gif border=0>;url=articles.php;showmenu=articles_classes;");
aI("text=<img src=welcome_craft_fairs.gif border=0>;url=articles.php;showmenu=craft_fairs;");
}
drawMenus();      
</script></td>
</tr>
</table></td>
  </tr>
</table>


You'll note I also removed the top / left positions because the menu is in a table, it is positioned relatively. Doing it that way will align the table to the right of that cell and of course the menu goes with it.

I'm not sure why you are using aI("text=<img src for the images, why not just use the image property?

Code:
aI("image=welcome_online_shop.gif;url=index.php;showmenu=online_shop;");


Hope that helps. I couldn't get your page to load so I could see it, I did get it far enough so I could view source and copy that to make a page.

Ruth


Poster: noelc
Dated: Thursday June 9 2005 - 6:30:33 BST

Ruth wrote:
I'm not sure why you are using aI("text=<img src for the images, why not just use the image property?

Code:
aI("image=welcome_online_shop.gif;url=index.php;showmenu=online_shop;");


Ahh - because I wasn't aware of this property - is there a list of properties that can be used somewhere?

Ruth wrote:
Hope that helps. I couldn't get your page to load so I could see it, I did get it far enough so I could view source and copy that to make a page.


Still seems to align left instead of right, but I have decided to sniff out this browser and offer these users an explanation along with a link to download a better browser.

Thanks for your help Ruth ;)


Poster: Ruth
Dated: Thursday June 9 2005 - 14:41:45 BST

Please post the page html code you are using now, since I can't get the other link to actually show. I have the images and stuff so I can check your new html code. The menu should align
right since it is relative positioned and you have aligned its container right.

Below my name you'll see a set of links to menu properties.

Ruth