problem in the width

Discussion in 'HTML & Website Design' started by crazy.works, Dec 18, 2008.

  1. #1
    hello,
    i got problem in the width that i wish to got help about .

    well the problem in the english characters, it pass the td or the table width .

    when i written any text in table with width lets say width="40%" or <td> with any width like width="50%" the characters stay in one line untill passing the table or the td width

    so this problem with the english characters only , i tried arabic characters and it works good , when the line got the mount of the characters it starts new line and it didnt pass the width

    so please help me to fix this , thanks
     
    crazy.works, Dec 18, 2008 IP
  2. tangletail

    tangletail Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    All right first of all make sure your using the <p>. Also it would be better to stop using tables now in start using css. the diffrence is css has the ability to reposition your test, load faster, has a cleaner mock up if you gave it it's own sheet go to w3schools to learn more
     
    tangletail, Dec 18, 2008 IP
  3. tangletail

    tangletail Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    are you still there
     
    tangletail, Dec 18, 2008 IP
  4. crazy.works

    crazy.works Peon

    Messages:
    304
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    ya iam here , thanks for your advice and i goona try the <p>
     
    crazy.works, Dec 18, 2008 IP
  5. crazy.works

    crazy.works Peon

    Messages:
    304
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    thank for the reply but it doesent work so here is the code


    
    <table style="border: 0px;  width: 100%;">
    
    <tr>
    
    <td width="80%" align="right" valign="top">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
    
    
    <tr>
    <td valign="top" width="2%"></td>
    <td valign="top" width="98%"><a href="index.php" > - title </a></td>
    </tr>
    
    
    <tr>
    <td valign="top" width="2%"></td>
    <td valign="top" width="98%" ><a> alot of letters here </a></td>
    </tr>
    
    
    
    
         </table>
    </td>
    
    
    
    <td width="20%" align="left" valign="top"><a href="index.php" ><img src="pic.jpg" width="150" height="120"    border="0"></a>
    </td>
    
    </tr>
    
    </table>
    
    PHP:
    so in this part from the code "<td valign="top" width="98%" ><a> alot of letters here </a></td>" when i put letters like ooooooooooo alot of it it pass the 80 % width and it move the pic in the left in the other 20 % width from the table
     
    crazy.works, Dec 18, 2008 IP
  6. iboltmedia

    iboltmedia Peon

    Messages:
    194
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I agree with the post above. You should stop using tables and use CSS with DIVs instead. It is a lot cleaner and will look a lot better than tables.
     
    iboltmedia, Dec 20, 2008 IP