ted_chou12 Posted February 10, 2007 Share Posted February 10, 2007 when text such as these: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa these long word text without any spaces inbetween often causes the page to be messed up, my data is organized in <td> tags in the tables, can anyone suggest me any ideas? Ted Link to comment https://forums.phpfreaks.com/topic/37879-solved-about-no-spacing-content/ Share on other sites More sharing options...
ted_chou12 Posted February 10, 2007 Author Share Posted February 10, 2007 and btw, how does the forum do the scroll bar thing? it prevented the data from going over the limit of the page, which my html codes are currently doing. Thanks Ted Link to comment https://forums.phpfreaks.com/topic/37879-solved-about-no-spacing-content/#findComment-181346 Share on other sites More sharing options...
wildteen88 Posted February 10, 2007 Share Posted February 10, 2007 Add an auto overflow, that what preventing your long non-spaced line of text breaking the layout. To add an auto overflow you'd do something like this: <td style="overflow: auto; width: 500px;">long string of text with no breaks in here</td> The browser should then add a scroll bar to the bottom of the table cell allowing you to scroll the content in the cell, like it does here. Note some browsers do not support the overflow style attribute. AFAIK IE6 and above, FF and Opera support this. Link to comment https://forums.phpfreaks.com/topic/37879-solved-about-no-spacing-content/#findComment-181359 Share on other sites More sharing options...
ted_chou12 Posted February 10, 2007 Author Share Posted February 10, 2007 THanks Link to comment https://forums.phpfreaks.com/topic/37879-solved-about-no-spacing-content/#findComment-181366 Share on other sites More sharing options...
fenway Posted February 11, 2007 Share Posted February 11, 2007 Just put a DIV inside the TD, and put the overflow there. Link to comment https://forums.phpfreaks.com/topic/37879-solved-about-no-spacing-content/#findComment-182279 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.