Jump to content


Photo

HTML table Cells...


  • Please log in to reply
2 replies to this topic

#1 Neptunus Maris

Neptunus Maris
  • Members
  • PipPipPip
  • Advanced Member
  • 192 posts

Posted 25 October 2006 - 09:53 PM

Hi, I was wanting to know how to limit horizontal space of data between the <td></td> tags... meaning:

If had text between the <td></td> tags I want the line of text to break to a new line after a certain amount of space used vertically.

Like this kinda:




[table][tr]
[td]
I want all my text to automatically break after<br>
This amount of text. Do you get what I am<br>
saying?



Thank you
Neptune

#2 gmwebs

gmwebs
  • Members
  • PipPipPip
  • Advanced Member
  • 174 posts
  • LocationLondon

Posted 25 October 2006 - 10:12 PM

If you specify a width for the <td></td> then the text should wrap automatically.


<td width="50">Place your text here. Once the text is wider than 50 pixels, it will wrap to the next line.</td>



#3 fenway

fenway
  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 26 October 2006 - 05:17 PM

Just remember that not all browsers respect this width... you may want to use a proper block element, like a DIV.
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users