Table size breaks after load from database

Discussion in 'PHP' started by pom4ik, Aug 4, 2010.

  1. #1
    Hi all,

    I have a strange problem ... i cannot give you a link to the site because it is not live yet but this is what i experience.
    A table with 2 cells total width is 780px the first cell is 250px and the second cell is 530px.
    I have a php function that loads some data from DB in a loop which creates more tables all with 530px width.
    The problem: when the text is long the line does not break to the next line but “breaks” the table.
    The cell does not have “nowrap” or any css for the matter of fact.
    Just the width style is set.

    Any advice ?

    thanks
     
    pom4ik, Aug 4, 2010 IP
  2. flexdex

    flexdex Peon

    Messages:
    104
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Post the html code please.
     
    flexdex, Aug 4, 2010 IP
  3. freshdevelopment

    freshdevelopment Notable Member

    Messages:
    1,303
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    240
    #3
    Is the text in one continuous string of characters, without spaces? If it is then it won't break onto a new line..
     
    freshdevelopment, Aug 4, 2010 IP
  4. pom4ik

    pom4ik Greenhorn

    Messages:
    31
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    16
    #4
    freshdevelopment: thank you ... that must be the problem ...i will give it a try ... i think the data entered is a continuous string.
     
    pom4ik, Aug 5, 2010 IP