Glese Posted December 1, 2011 Share Posted December 1, 2011 The table in the script has a set max-width. How can now a too long continuous text string as in "blaaaaaaaa", which also does not contain a space or dash, be broken, so the table does not become stretched to far? Which function is used for this? Quote Link to comment https://forums.phpfreaks.com/topic/252238-break-a-continuous-text-string/ Share on other sites More sharing options...
scootstah Posted December 1, 2011 Share Posted December 1, 2011 This has nothing to do with PHP. You'd do this with HTML and CSS. Take a look at the CSS word-wrap property. Quote Link to comment https://forums.phpfreaks.com/topic/252238-break-a-continuous-text-string/#findComment-1293175 Share on other sites More sharing options...
Pikachu2000 Posted December 1, 2011 Share Posted December 1, 2011 This has nothing to do with PHP. You'd do this with HTML and CSS. Take a look at the CSS word-wrap property. PHP also has a wordwrap function, you know. Quote Link to comment https://forums.phpfreaks.com/topic/252238-break-a-continuous-text-string/#findComment-1293188 Share on other sites More sharing options...
requinix Posted December 1, 2011 Share Posted December 1, 2011 You can also insert soft hyphens or zero-width spaces. Quote Link to comment https://forums.phpfreaks.com/topic/252238-break-a-continuous-text-string/#findComment-1293189 Share on other sites More sharing options...
Glese Posted December 1, 2011 Author Share Posted December 1, 2011 This has nothing to do with PHP. You'd do this with HTML and CSS. Take a look at the CSS word-wrap property. PHP also has a wordwrap function, you know. Thanks a lot, I got it to work. Quote Link to comment https://forums.phpfreaks.com/topic/252238-break-a-continuous-text-string/#findComment-1293200 Share on other sites More sharing options...
scootstah Posted December 1, 2011 Share Posted December 1, 2011 This has nothing to do with PHP. You'd do this with HTML and CSS. Take a look at the CSS word-wrap property. PHP also has a wordwrap function, you know. I suppose. HTML/CSS just seems better suited to handle this. Quote Link to comment https://forums.phpfreaks.com/topic/252238-break-a-continuous-text-string/#findComment-1293218 Share on other sites More sharing options...
Glese Posted December 1, 2011 Author Share Posted December 1, 2011 --- My bad, did a mistake. -- Quote Link to comment https://forums.phpfreaks.com/topic/252238-break-a-continuous-text-string/#findComment-1293264 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.