Another positioning question IE 5.2 on Mac

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
noelc
Beginner
Beginner
Posts: 6
Joined: Tue Jun 07, 2005 1:17 pm

Another positioning question IE 5.2 on Mac

Post by noelc »

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://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/
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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: Select all

<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: Select all

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
noelc
Beginner
Beginner
Posts: 6
Joined: Tue Jun 07, 2005 1:17 pm

Post by noelc »

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: Select all

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 ;)
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
Post Reply