| Welcome to WebmasterWorld Guest from 22.214.171.124 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|Table width Problems|
I'm probably just being dumb but.....
Ok, I have my table that I want set at 150px. The contents within the table could be anything, in this case a 50 character string:
Due to the string's length (and it having no spaces) is pushing my table width out.
I've had this problem a few times now and I know that its probably simple html but I must have been off school that day ;) How do I force a carriage return when it reaches the 150 width limit?
You can't (at least in plain HTML).
Do it manually.
What do you mean by 'do it manually'? Any code I can look at?
He means do it manually. You need to put a space or break in the string of characters somewhere. A single string will not "break itself" to wrap within a table width.
Perhaps it doesnt have to be done manualy. If you use some form of server side scripting to extract the data you could take care of the arangement of the letters at the same time.
What server side scripting language (perl, php asp etc) do you use.
I use PHP but in a way my question has been answered...you can't do it. I knew I could do this with php, but for some reason, I thought you could do this in html.
Thanks all :)
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved