Help.. Articles from database do not wrap in Firefox...

Discussion in 'PHP' started by livingearth, May 31, 2007.

  1. #1
    The title pretty much says it all. I am having problems with text from a database not wrapping to the defined table cell in Firefox. I have tried various scripts to break the string every so many characters etc, but none of these work well, and often break the links as well.
    How is this done ? I know it is possible as the posts in this forum are stored in a database and they wrap fine in Firefox..
    Any help will be greatly appreciated...
     
    livingearth, May 31, 2007 IP
  2. gandaliter

    gandaliter Peon

    Messages:
    64
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Can you post the code, and what the actual result is.
     
    gandaliter, May 31, 2007 IP
  3. livingearth

    livingearth Well-Known Member

    Messages:
    1,469
    Likes Received:
    83
    Best Answers:
    0
    Trophy Points:
    140
    #3
    An example of the result can be found on...
    http://www.citiesamerica.com/US/CA/San Diego
    View it in IE and its fine ... ... Well you'll see.
    View it in FF... Well you'll see.
    the code that produces it is a simple..

    echo " $content ";
     
    livingearth, May 31, 2007 IP
  4. gandaliter

    gandaliter Peon

    Messages:
    64
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Well it works for me in FF. What version are you using?
     
    gandaliter, May 31, 2007 IP
  5. livingearth

    livingearth Well-Known Member

    Messages:
    1,469
    Likes Received:
    83
    Best Answers:
    0
    Trophy Points:
    140
    #5
    I believe the version is 2.0.0.3
     
    livingearth, Jun 1, 2007 IP
  6. e_hippie

    e_hippie Guest

    Messages:
    32
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Works for me too.
     
    e_hippie, Jun 2, 2007 IP
  7. krt

    krt Well-Known Member

    Messages:
    829
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    120
    #7
    I see the problem (in FF 2.0.0.4 if it matters), and using Firebug, it seems the problem is the table cell is not being set to the correct width, instead it is extending far beyond the width of the table it is a cell of. However the invalid and code and tables inside the "legend" of a "fieldset" and the fact that the suspect cell is in a hierarchy about 20 levels deep makes it hard to find the problem. Have you considered rewriting that section? It seems a lot of the code is unnecessary and will just cause more problems. (Valid code is hard enough to make cross browser compatible!)
     
    krt, Jun 2, 2007 IP