Results 1 to 5 of 5

Thread: hyphen in email address display problem

  1. #1
    Join Date
    Jul 2005
    Posts
    101
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default hyphen in email address display problem

    On my site, IE browser splits email addresses containing a hyphen into three lines
    e.g. some-email@email.com displays as

    some

    -

    email@email.com

    How do I stop this from happening
    Cheers
    Billy

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Can you post a link to the site that this happens on? Its kind of hard to tell anything with out more details or at least seeing it in action.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. #3
    Join Date
    Jul 2005
    Posts
    101
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    On this page

    http://www.estateagentsespana.com/co..._agents_01.htm

    scroll down to the entry for Guiliano Villas and you will see the email address is broken into three lines. It displays ok in Firefox but not in IE
    Cheers
    Billy

  4. #4
    Join Date
    Apr 2008
    Posts
    15
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Default

    By normal grammatical standards, it is acceptable to break a hyphenated word at the hyphen.

    The browser is treating the hyphenated email addresses like hyphenated words.

    ...which...you already know.

    I suspect that it has much to do with your div widths.
    If your combined div widths are wider (larger) than the space allowed for display, the browser will try to find a way to make everything fit . . . to the best of it's ability. It looks like it's taking advantage of the hyphens in the email addresses to grab any available space it can.

    That is a lot of information you're presenting.
    It might be better presented in a table with fixed-width columns.
    Also...with a table, you'd have considerable less formatting to do in the long run.

    . . . just a thought.

  5. #5
    Join Date
    Jul 2005
    Posts
    101
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    Thanks Terrik.

    I do not think this is a space-allocation problem as the display is fine in Firefox. However, I will try playing around with width and see what happens.

    The entries used to be displayed using tables but I changed over to CSS for the very considerable saving in HTML tags and page size.
    Cheers
    Billy

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •