• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 194
  • Last Modified:

DASH in MAC IE causes carriage return

I *guess* this is a javascript problem.  And it's such a little problem and so maddening.

Look at this page in PC IE or PC Firefox or PC Netscape.  We are talking about the word "START-UP" in the drop down menu.
http://www.sloanusa.com/index.htm

And it looks fine in those two browsers. But in MAC IE the "-" causes a carriage return.  

Now see this screen capture:

http://www.sloanusa.com/test2.html

I've tried a regular dash, and a –  both cause carriage returns in MAC IE.

I'm also wondering if modifying the doctype might help. Here's the current doctype:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

Any thoughts on how to fix this?

Thanks

Rowby
0
Rowby Goren
Asked:
Rowby Goren
  • 2
  • 2
1 Solution
 
jmcgOwnerCommented:
There's no Perl component to this question that I can see....

One suggestion I found at:

http://www.xs4all.nl/~sbpoley/webmatters/cssbuttons.html

is to add a <NOBR> tag around the problem hyphen:

mm_menu_0330180022_1.addMenuItem("<NOBR>BUSINESS&nbsp;FORMATION&nbsp;AND&nbsp;START-UP</NOBR>","location='/business.htm'");

It's nonstandard but widely supported (I just don't know for sure if Mac IE supports it).

======

The other thing to try is:

&#8209; non-breaking hyphen as hyphen (U+2011), but not an allowed line break point





0
 
Rowby GorenAuthor Commented:
Thanks jmcg

I'll check them out and report back by tthe morning.

ROwby
0
 
Rowby GorenAuthor Commented:
Thanks, jmcg!

Sorry for the tremendous delay in awarding you the points!

Rowby
0
 
jmcgOwnerCommented:
A couple of months isn't bad. While doing Cleanup, I've spent time in areas where there were questions more than 2 years old!

You might want to click on the link that says "My Open Questions" and check to see if you have any other old questions that could be closed. As I'm writing this, you have 11 open questions, but I know that several of those are still active.

jmcg
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now