springo Posted May 6, 2007 Share Posted May 6, 2007 Hi, I'd like to know if it's possible to cut a text string to a given width in pixels, like 400px or anything, so that I can fit it in a <td> with such width. Thank you very much for your help. Link to comment https://forums.phpfreaks.com/topic/50237-text-width-in-pixels/ Share on other sites More sharing options...
trq Posted May 6, 2007 Share Posted May 6, 2007 This isn't really possible unless you make your text into an image. Different users may have different browser settings making php unable to detect the size of text. Link to comment https://forums.phpfreaks.com/topic/50237-text-width-in-pixels/#findComment-246587 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.