homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

User input data stretches template
How can I fix this?

10+ Year Member

Msg#: 3216860 posted 1:33 am on Jan 12, 2007 (gmt 0)

I have a site where is seems users that but long continueous lines like:


always stretch the temple (I have aout 400 pixles of space to work with). Is there a way to create a typcial table that bends the input at the 400 pixel mark rather than strethcdes the table some other way?

Methods tried and either failed or ruined the look of the site include:

1) text field with scroll bars
2) limiting number of characters (works but becuase some characters are longer than others, it makes legitiamate text look bad (stops too far from the margin).
3) Programming autmatic breaks in continueous text. Works, but just seems hokey and overkill.

Is here a better way to do this?

Many thanks!

[edited by: tedster at 2:27 am (utc) on Jan. 12, 2007]
[edit reason] add line breaks to prevent side scroll [/edit]



WebmasterWorld Senior Member rocknbil us a WebmasterWorld Top Contributor of All Time 10+ Year Member

Msg#: 3216860 posted 9:13 am on Jan 12, 2007 (gmt 0)

^ ^ ^ LOL . . as you can see by tedster's edit of your post, it is not a problem that is always managed. :-) I would say #3 is your only choice, but you don't need line breaks - just white spaces. If the page outtput is preformatted, then use newlines.

You would have to program it (in the language of your choice) to count the input characters and look for a space character, if there's no space in 400 chars - insert one. Then reset the count and keep looking.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved