Line Break - Break a long line

Discussion in 'HTML & Website Design' started by Luke Jones, Sep 4, 2007.

  1. #1
    Hello,
    I have a script that sometimes returns a paragraph, all on one line, so that it breaks out of the template and makes the page very wide.
    For example (at the time of posting): http://buyacar.be/info/Buy_a_car/page6.htm
    What's the command for making the line go to the next line when it gets to the border of the <div>? It should be automatic, but occasionally it's not doing it, and I don't know why.

    Thanks.
     
    Luke Jones, Sep 4, 2007 IP
  2. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #2
    If I have looked at the right item, you are not asking the right question.

    I saw "Is it safe to buy a car that has had "slight frame repair"?? " breaking your div because that string of text is a hyperlink. For links it is not automatic.

    And sadly, I don't know the answer. Maybe what I have added can help you reword the question if you don't get an answer.
     
    Colbyt, Sep 4, 2007 IP
  3. gaurav pratap

    gaurav pratap Banned

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I dont think so that your paragraph script breaks out of the template and makes the page very wide. So please, mention the exact requirement.
    Thankyou
     
    gaurav pratap, Sep 5, 2007 IP
  4. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Maybe there's some way you can convert long-string links to a shorter version, like www.tinyurl.com. I dunno if they cost or what the deal is with them, but I've seen it used in forums for example where the admin does not allow long links to break the setup.
     
    Stomme poes, Sep 5, 2007 IP
  5. Luke Jones

    Luke Jones Peon

    Messages:
    427
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I'm not asking the right question?!

    Sometimes it's caused by a very long url, sometimes there doesn't seem to be any explaination.
    So, I need to automatically break long urls, and force long lines to divide.
     
    Luke Jones, Sep 5, 2007 IP
  6. nwk

    nwk Well-Known Member

    Messages:
    385
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    158
    #6
    I don't know how to solve the problem while using tables but the problem can be solved using divs instead of the tables. So, if you can change it to divs that would be a better option IMO. Besides tables are not SEO friendly...
     
    nwk, Sep 5, 2007 IP
  7. Luke Jones

    Luke Jones Peon

    Messages:
    427
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    NWK,
    I changed the tables to divs and it didn't work. It's exactly the same.
    Should I change the <td>s to divs as well?
     
    Luke Jones, Sep 5, 2007 IP
  8. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #8
    This Google search phrase contains the answer. I looked at the first couple of items and did not see a clear cut answer or I would have just posted that link.

    Have fun.
     
    Colbyt, Sep 5, 2007 IP