Jump to content

Archived

This topic is now archived and is closed to further replies.

Neptunus Maris

HTML table Cells...

Recommended Posts

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]
[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?
[/td]
[/tr]
[/table]


Thank you
Neptune

Share this post


Link to post
Share on other sites
If you specify a width for the <td></td> then the text should wrap automatically.

[code]

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

[/code]

Share this post


Link to post
Share on other sites
Just remember that not all browsers respect this width... you may want to use a proper block element, like a DIV.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.