Neptunus Maris Posted October 25, 2006 Share Posted October 25, 2006 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 youNeptune Quote Link to comment https://forums.phpfreaks.com/topic/25101-html-table-cells/ Share on other sites More sharing options...
gmwebs Posted October 25, 2006 Share Posted October 25, 2006 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] Quote Link to comment https://forums.phpfreaks.com/topic/25101-html-table-cells/#findComment-114479 Share on other sites More sharing options...
fenway Posted October 26, 2006 Share Posted October 26, 2006 Just remember that not all browsers respect this width... you may want to use a proper block element, like a DIV. Quote Link to comment https://forums.phpfreaks.com/topic/25101-html-table-cells/#findComment-114900 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.