Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

User input data stretches template

How can I fix this?

1:33 am on Jan 12, 2007 (gmt 0)

Preferred Member

10+ Year Member

joined:July 5, 2004
votes: 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]

9:13 am on Jan 12, 2007 (gmt 0)

Senior Member

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

joined:Nov 28, 2004
votes: 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.


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members