Line Break Problem

Discussion in 'HTML & Website Design' started by aami2007, Apr 11, 2007.

  1. #1
    Hello Everyone

    I am facing an issue regarding line break. I have developed a page displays user inputed data. The Problem I am facing was that when any user inputs a long URL or text without space, the text pops out of the table. This effects the structure of page. I have found the solution for this problem by putting following code (style="table-layout:fixed;word-wrap:break-word") but it only works fine for IE. On IE this code breaks the long URL or text into different line but on Firefox it still shows the long URL in one line effecting the page structure. Can anyone help me in finding the solution of this problem for Firefox.

    Thanking you in anticipation
     
    aami2007, Apr 11, 2007 IP
  2. chiz

    chiz Peon

    Messages:
    102
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Haven't come across this myself. Would also want to know how to solve this.
     
    chiz, Apr 11, 2007 IP
  3. chiz

    chiz Peon

    Messages:
    102
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Seems there's no quick solution here. Can you modify the code to replace hyphens with soft hyphens?

    Based on a documentation from w3.org (http://www.w3.org/TR/html4/struct/text.html#h-9.3.3), there are two types of hyphens:
    1. plain hyphen; and
    2. soft hyphen

    Maybe replacing the plain hyphens with soft hyphens would break the long lines. Pls. let us know what happens.
     
    chiz, Apr 11, 2007 IP