Mac Alignment Problem

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
deiffert
Beginner
Beginner
Posts: 2
Joined: Tue May 16, 2006 8:38 pm

Mac Alignment Problem

Post by deiffert »

Hello,
For some reason the menu i'm working on isn't aligning correctly on macs (I've tested IE and Safari on Mac on 2 different computers) it seems like the font is bolder or something so it bleeds out of it's area.

http://www.baillios.com/beta

Milonic Folder: http://baillios.com/beta/ssi/milonic/
Menu Data File: http://baillios.com/beta/ssi/milonic/menu_data.js

Any help would be great. Thanks so much, :)
- David
deiffert
Beginner
Beginner
Posts: 2
Joined: Tue May 16, 2006 8:38 pm

Got It

Post by deiffert »

Just wanted to let everyone know that I got it.
It was a problem with mac displaying font sizes differently.
WHat I did was edit the menu_data.js script with the following:

Replace the standard

fontsize="xxx";

with

if (navigator.appVersion.indexOf("Mac")!=-1) {fontsize="xxx";}
else {fontsize="xxx";}


Seems to work ok now. 8O
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Good old IE for the Mac, it's a lovely browser, always a pleasure to work with.....NOT!!!

Glad you got it sorted :D
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Also, you could have used the following code:

Code: Select all

fontsize="xxx";
if (mac)fontsize="xxx"; 
It's much cleaner
Post Reply