table width problem

Discussion in 'HTML & Website Design' started by christydavid, Oct 26, 2009.

  1. #1
    Hello Sir,

    I want to ask about table structure that when i am inserting image in table then the table width takes much more width size
    plz give me solution about this matter.How i can remove this problem in my table.
    :confused:












    Thanks
    christy david:
     
    christydavid, Oct 26, 2009 IP
  2. lahsiv

    lahsiv Well-Known Member

    Messages:
    245
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #2
    Give table size as image or shortening the image size.
     
    lahsiv, Oct 26, 2009 IP
  3. forextrendalerts

    forextrendalerts Guest

    Messages:
    132
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I have my table that I want set at 150px. The contents within the table could be anything, in this case a 50 character string:

    12345678901234567890123456789012345678901234567890

    Due to the string's length (and it having no spaces) is pushing my table width out.

    <table width="150">
    <tr><td>
    12345678901234567890123456789012345678901234567890
    </td></tr>
    </table>

    I've had this problem a few times now and I know that its probably simple html but I must have been off school that day ;) How do I force a carriage return when it reaches the 150 width limit?
     
    forextrendalerts, Oct 27, 2009 IP
  4. stevestuff

    stevestuff Well-Known Member

    Messages:
    631
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    185
    #4
    DUDE - get converted - tables are EVIL! repent & take CSS as your Savior!

    But realistically, if you place an image inside of a table, the table will expand if the image is larger than the cell. Resize the image first - realize your dimentions ... or use CSS.
     
    stevestuff, Oct 27, 2009 IP