DASH in MAC IE causes carriage return

Posted on 2005-05-10
Last Modified: 2008-01-09
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.

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

Now see this screen capture:

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"

Any thoughts on how to fix this?


Question by:Rowby Goren
    LVL 20

    Accepted Solution

    There's no Perl component to this question that I can see....

    One suggestion I found at:

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


    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

    LVL 9

    Author Comment

    by:Rowby Goren
    Thanks jmcg

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

    LVL 9

    Author Comment

    by:Rowby Goren
    Thanks, jmcg!

    Sorry for the tremendous delay in awarding you the points!

    LVL 20

    Expert Comment

    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.


    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (…
    Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now