Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    New Coder
    Join Date
    Mar 2011
    Location
    Budapest
    Posts
    10
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Word Hyphenate in html, question.

    Hello, I have a site and for the first time in a textbox i need to make a separation of a word, to hyphenate it. The word is "correspondence". It should be like this "correspond-" and the "ence" on a next line. After the dash i put a <br> tag, on my computer is looking good I checked On Firefox and IE., but on my friends computer is looking like this:
    "Text text text text text text text text text correspond
    -
    ence text text text text text"

    How should I hyphanate it, to look correct, what tag should I use. And the hard thing is that I can't check because on my computer is looking good even if I'm pressing F5. I suggested to him as well, but on his computer the problem persists

    Thank you

  • #2
    Regular Coder
    Join Date
    Jul 2011
    Location
    India
    Posts
    496
    Thanks
    3
    Thanked 57 Times in 56 Posts
    Share your site link here.. let us check and try on our systems

  • #3
    New Coder
    Join Date
    Mar 2011
    Location
    Budapest
    Posts
    10
    Thanks
    2
    Thanked 0 Times in 0 Posts
    http://legalwritingcoach.com/three.htm

    this is the page and the third line hyphenation is the problem. If it is looking good on your computer too so please tell me what should I recommend to him to do with it to look good on his as well. Wherever I checked is good but on his phone and one his computer is not good.

    Thanks

  • #4
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,480
    Thanks
    6
    Thanked 981 Times in 954 Posts
    There is a special character for this, it’s called “soft hyphen”, and I believe it’s pretty well supported across browsers nowadays. Basically you insert the soft hyphen character with the HTML entity &shy; into the word and it will break there if applicable, or it will be just a regular word if no breaking is necessary. So, you’d just write “correspond&shy;ence” and the word will wrap, displaying a hyphen, if necessary.

  • #5
    Regular Coder
    Join Date
    Jul 2011
    Location
    India
    Posts
    496
    Thanks
    3
    Thanked 57 Times in 56 Posts
    It is displaying fine on my system

  • #6
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    It is very strange to want this when your text is ragged, and looks horribly wrong and bizarre. Why exactly do you want to do this?

  • #7
    New Coder
    Join Date
    Mar 2011
    Location
    Budapest
    Posts
    10
    Thanks
    2
    Thanked 0 Times in 0 Posts
    It is a request from my friend, and again I've got the reply that on internet explorer the HTML entity (soft hyphenation, *) *doesn't help. In the beginning the text was justify, but he asked me to put it like this. After your opinion how should it look the text, justify? So this hyphenate thing it is killing me. I'm putting the link again with the inserted soft hyphenation, on the third line (http://legalwritingcoach.com/three.htm). On his computer the word correspondence is going down one line and it is not hyphenated, I checked on my IPhone and it is not hyphenated neither. If anyone has a further idea, thanks for it.
    Last edited by ile.adrian; 07-19-2011 at 06:54 AM.

  • #8
    New Coder
    Join Date
    Mar 2011
    Location
    Budapest
    Posts
    10
    Thanks
    2
    Thanked 0 Times in 0 Posts
    I tried it's working on Firefox but not on the IE and neither on IPhone. Further tips? Thanks

  • #9
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    Quote Originally Posted by ile.adrian View Post
    I tried it's working on Firefox but not on the IE and neither on IPhone. Further tips? Thanks
    It's not fully supported. Hyphenation was never really designed for the screen and is only slowly gaining support. On screen, it is traditional for your text to be ragged and unhyphenated; in print, it is traditional for text to be flush and hyphenated when necessary.

  • Users who have thanked Apostropartheid for this post:

    ile.adrian (07-20-2011)


  •  

    Posting Permissions

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