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? 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. 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. 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. 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. 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. 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. -- 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
Archived
This topic is now archived and is closed to further replies.