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 Quote 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 Quote 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. Quote 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 Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.