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. Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/50237-text-width-in-pixels/#findComment-246587 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.